1 // File: GeomAPI_DataMapOfShapeShape.h
2 // Created: 28 Oct 2014
3 // Author: Sergey Zaritchny
5 #ifndef GeomAPI_DataMapOfShapeShape_H_
6 #define GeomAPI_DataMapOfShapeShape_H_
8 #include <boost/shared_ptr.hpp>
9 #include <GeomAPI_Interface.h>
14 /**\class GeomAPI_DataMapOfShapeShape
16 * \brief DataMap of Shape - Shape defined by TopoDS_Shapes
19 class GEOMAPI_EXPORT GeomAPI_DataMapOfShapeShape : public GeomAPI_Interface
22 /// Creation of plane by the point and normal
23 GeomAPI_DataMapOfShapeShape();
28 /// Adds the Key <K> to the Map <me> with the Item. Returns True if the Key was not already in the map
29 bool bind (boost::shared_ptr<GeomAPI_Shape> theKey, boost::shared_ptr<GeomAPI_Shape> theItem);
31 /// Returns true if theKey is stored in the map.
32 bool isBound (boost::shared_ptr<GeomAPI_Shape> theKey);
34 /// Returns the Item stored with the Key in the Map.
35 const boost::shared_ptr<GeomAPI_Shape> find(boost::shared_ptr<GeomAPI_Shape> theKey);
37 /// Removes the Key from the map. Returns true if the Key was in the Map
38 bool unBind(boost::shared_ptr<GeomAPI_Shape> theKey);
41 ~GeomAPI_DataMapOfShapeShape();