Salome HOME
Integration of PAL/SALOME V2.1.0c from OCC
[modules/smesh.git] / src / SMDS / SMDS_MeshElementIDFactory.hxx
index 8814676335d34505bea659a419044d47232ecfe0..932ad057cd715fc64e10ec9f9442ddbfdd889699 100644 (file)
 #define _SMDS_MeshElementIDFactory_HeaderFile
 
 #include "SMDS_MeshIDFactory.hxx"
-#include <SMDS_Iterator.hxx>
 
 #include <map>
-using namespace std;
 
 class SMDS_MeshElement;
 
+typedef std::map<int, SMDS_MeshElement *> SMDS_IdElementMap;
+
 class SMDS_MeshElementIDFactory:public SMDS_MeshIDFactory
 {
   public:
        SMDS_MeshElementIDFactory();
        bool BindID(int ID, SMDS_MeshElement * elem);
        SMDS_MeshElement * MeshElement(int ID);
+       virtual int GetFreeID();
+       virtual void ReleaseID(int ID);
+       int GetMaxID() const;
+       int GetMinID() const;
+        const SMDS_IdElementMap & GetIdElementMap() const { return myIDElements; }
   private:
-       map<int, SMDS_MeshElement *> myIDElements;
+       SMDS_IdElementMap myIDElements;
 
 };