- SMDS_MeshElement * MeshElement(int ID);

+  SMDS_MeshElement * MeshElement(int ID) const;
This commit is contained in:
eap 2010-02-09 07:02:21 +00:00
parent b90c9d785d
commit 1fd762e26c
2 changed files with 2 additions and 2 deletions

View 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;

View 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;