Salome HOME
- SMDS_MeshElement * MeshElement(int ID);
authoreap <eap@opencascade.com>
Tue, 9 Feb 2010 07:02:21 +0000 (07:02 +0000)
committereap <eap@opencascade.com>
Tue, 9 Feb 2010 07:02:21 +0000 (07:02 +0000)
+  SMDS_MeshElement * MeshElement(int ID) const;

src/SMDS/SMDS_MeshElementIDFactory.cxx
src/SMDS/SMDS_MeshElementIDFactory.hxx

index 7ecfba5b025d022cb5534b882250deaf280d0c09..545f7de3470011a3fb945edd083b000be5b73742 100644 (file)
@@ -61,7 +61,7 @@ bool SMDS_MeshElementIDFactory::BindID(int ID, SMDS_MeshElement * elem)
 //function : MeshElement
 //purpose  : 
 //=======================================================================
-SMDS_MeshElement* SMDS_MeshElementIDFactory::MeshElement(int ID)
+SMDS_MeshElement* SMDS_MeshElementIDFactory::MeshElement(int ID) const
 {
   if (!myIDElements.IsBound(ID))
     return NULL;
index a574def92ad12fbdc208d601b64ab5663c4ecbf0..dc3e5191760987de87a346735b9d446a0a3de452 100644 (file)
@@ -42,7 +42,7 @@ class SMDS_EXPORT SMDS_MeshElementIDFactory:public SMDS_MeshIDFactory
 public:
   SMDS_MeshElementIDFactory();
   bool BindID(int ID, SMDS_MeshElement * elem);
-  SMDS_MeshElement * MeshElement(int ID);
+  SMDS_MeshElement * MeshElement(int ID) const;
   virtual int GetFreeID();
   virtual void ReleaseID(int ID);
   int GetMaxID() const;