X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAPI%2FGeomAPI_DataMapOfShapeMapOfShapes.h;h=395abae3444c6cba1c40305d8be7a2d38a3d6da8;hb=f60dc9dd94d5d4b0ea07e3e3cbfd5b3028f0942d;hp=3f2e6c97d4f6b4e28ac1ea7fdd1980d3346aca9a;hpb=2532fb2df83ee1ddd9ff3e8b381d3788eaa15b69;p=modules%2Fshaper.git diff --git a/src/GeomAPI/GeomAPI_DataMapOfShapeMapOfShapes.h b/src/GeomAPI/GeomAPI_DataMapOfShapeMapOfShapes.h index 3f2e6c97d..395abae34 100644 --- a/src/GeomAPI/GeomAPI_DataMapOfShapeMapOfShapes.h +++ b/src/GeomAPI/GeomAPI_DataMapOfShapeMapOfShapes.h @@ -14,7 +14,8 @@ // License along with this library; if not, write to the Free Software // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +// See http://www.salome-platform.org/ or +// email : webmaster.salome@opencascade.com // #ifndef GeomAPI_DataMapOfShapeMapOfShapes_H_ @@ -63,6 +64,40 @@ public: /// \return size of map. GEOMAPI_EXPORT int size() const; + +public: + class iterator + { + public: + typedef GeomShapePtr key_type; + typedef ListOfShape mapped_type; + typedef std::pair value_type; + + public: + GEOMAPI_EXPORT iterator(); + GEOMAPI_EXPORT iterator(const iterator&); + GEOMAPI_EXPORT const iterator& operator=(const iterator&); + + GEOMAPI_EXPORT bool operator==(const iterator&) const; + GEOMAPI_EXPORT bool operator!=(const iterator&) const; + + GEOMAPI_EXPORT virtual iterator& operator++(); + GEOMAPI_EXPORT virtual iterator operator++(int); + + GEOMAPI_EXPORT virtual key_type first() const; + GEOMAPI_EXPORT virtual mapped_type second() const; + + protected: + std::shared_ptr mySelf; + }; + + typedef iterator const_iterator; + + GEOMAPI_EXPORT iterator begin(); + GEOMAPI_EXPORT const_iterator begin() const; + + GEOMAPI_EXPORT iterator end(); + GEOMAPI_EXPORT const_iterator end() const; }; #endif