Salome HOME
Merge with version on tag OCC-V2_1_0d
[modules/smesh.git] / src / SMDS / SMDS_MeshElementIDFactory.hxx
index f987eaed2d4c7bb67ec51b69441dbe03f3779425..932ad057cd715fc64e10ec9f9442ddbfdd889699 100644 (file)
 #include "SMDS_MeshIDFactory.hxx"
 
 #include <map>
-using namespace std;
 
 class SMDS_MeshElement;
 
+typedef std::map<int, SMDS_MeshElement *> SMDS_IdElementMap;
+
 class SMDS_MeshElementIDFactory:public SMDS_MeshIDFactory
 {
   public:
@@ -42,8 +43,11 @@ class SMDS_MeshElementIDFactory:public SMDS_MeshIDFactory
        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;
 
 };