X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAPI%2FGeomAPI_DataMapOfShapeMapOfShapes.h;h=b5c9ae05a1733490248e01544c144331b6165573;hb=a211165b993cec59888b300199b44b525c0daf69;hp=ce6ae9133cd868a8fc6e226750304ada9d84c60e;hpb=423c10234142d14d0d5de89383f2f96a4ec5930f;p=modules%2Fshaper.git diff --git a/src/GeomAPI/GeomAPI_DataMapOfShapeMapOfShapes.h b/src/GeomAPI/GeomAPI_DataMapOfShapeMapOfShapes.h index ce6ae9133..b5c9ae05a 100644 --- a/src/GeomAPI/GeomAPI_DataMapOfShapeMapOfShapes.h +++ b/src/GeomAPI/GeomAPI_DataMapOfShapeMapOfShapes.h @@ -1,8 +1,21 @@ -// Copyright (C) 2014-20xx CEA/DEN, EDF R&D - -// File: GeomAPI_DataMapOfShapeMapOfShapes.h -// Created: 4 September 2015 -// Author: Dmitry Bobylev +// Copyright (C) 2014-2019 CEA/DEN, EDF R&D +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// 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 +// #ifndef GeomAPI_DataMapOfShapeMapOfShapes_H_ #define GeomAPI_DataMapOfShapeMapOfShapes_H_ @@ -50,6 +63,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