20 #ifndef GeomAPI_DataMapOfShapeMapOfShapes_H_
21 #define GeomAPI_DataMapOfShapeMapOfShapes_H_
23 #include "GeomAPI_Interface.h"
25 #include "GeomAPI_Shape.h"
41 GEOMAPI_EXPORT
bool bind(
const std::shared_ptr<GeomAPI_Shape> theKey,
42 const ListOfShape& theItems);
48 GEOMAPI_EXPORT
bool add(
const std::shared_ptr<GeomAPI_Shape> theKey,
49 const std::shared_ptr<GeomAPI_Shape> theItem);
52 GEOMAPI_EXPORT
bool isBound(
const std::shared_ptr<GeomAPI_Shape> theKey)
const;
55 GEOMAPI_EXPORT
bool find(
const std::shared_ptr<GeomAPI_Shape> theKey,
56 ListOfShape& theItems)
const;
59 GEOMAPI_EXPORT
bool unBind(
const std::shared_ptr<GeomAPI_Shape> theKey);
62 GEOMAPI_EXPORT
void clear();
65 GEOMAPI_EXPORT
int size()
const;
71 typedef GeomShapePtr key_type;
72 typedef ListOfShape mapped_type;
73 typedef std::pair<GeomShapePtr, ListOfShape> value_type;
80 GEOMAPI_EXPORT
bool operator==(
const iterator&)
const;
81 GEOMAPI_EXPORT
bool operator!=(
const iterator&)
const;
83 GEOMAPI_EXPORT
virtual iterator& operator++();
84 GEOMAPI_EXPORT
virtual iterator operator++(
int);
86 GEOMAPI_EXPORT
virtual key_type first()
const;
87 GEOMAPI_EXPORT
virtual mapped_type second()
const;
90 std::shared_ptr<iterator> mySelf;
Definition: GeomAPI_DataMapOfShapeMapOfShapes.h:69
DataMap of Shape - Map of Shapes defined by TopoDS_Shapes.
Definition: GeomAPI_DataMapOfShapeMapOfShapes.h:31
GEOMAPI_EXPORT void clear()
Clears map.
Definition: GeomAPI_DataMapOfShapeMapOfShapes.cpp:106
GEOMAPI_EXPORT bool find(const std::shared_ptr< GeomAPI_Shape > theKey, ListOfShape &theItems) const
Definition: GeomAPI_DataMapOfShapeMapOfShapes.cpp:79
GEOMAPI_EXPORT GeomAPI_DataMapOfShapeMapOfShapes()
Constructor.Creates empty map.
Definition: GeomAPI_DataMapOfShapeMapOfShapes.cpp:30
GEOMAPI_EXPORT bool bind(const std::shared_ptr< GeomAPI_Shape > theKey, const ListOfShape &theItems)
Binds list of shapes to the key shape.
Definition: GeomAPI_DataMapOfShapeMapOfShapes.cpp:35
GEOMAPI_EXPORT int size() const
Definition: GeomAPI_DataMapOfShapeMapOfShapes.cpp:112
GEOMAPI_EXPORT bool isBound(const std::shared_ptr< GeomAPI_Shape > theKey) const
Definition: GeomAPI_DataMapOfShapeMapOfShapes.cpp:72
GEOMAPI_EXPORT bool add(const std::shared_ptr< GeomAPI_Shape > theKey, const std::shared_ptr< GeomAPI_Shape > theItem)
Adds item to the map bounded to the key.
Definition: GeomAPI_DataMapOfShapeMapOfShapes.cpp:57
GEOMAPI_EXPORT bool unBind(const std::shared_ptr< GeomAPI_Shape > theKey)
Undinds shapes from theKey.
Definition: GeomAPI_DataMapOfShapeMapOfShapes.cpp:99
General base class for all interfaces in this package.
Definition: GeomAPI_Interface.h:38