1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: GeomAPI_DataMapOfShapeShape.h
4 // Created: 28 Oct 2014
5 // Author: Sergey Zaritchny
7 #ifndef GeomAPI_DataMapOfShapeShape_H_
8 #define GeomAPI_DataMapOfShapeShape_H_
11 #include <GeomAPI_Interface.h>
16 /**\class GeomAPI_DataMapOfShapeShape
18 * \brief DataMap of Shape - Shape defined by TopoDS_Shapes
20 class GEOMAPI_EXPORT GeomAPI_DataMapOfShapeShape : public GeomAPI_Interface
23 /// Creation of plane by the point and normal
24 GeomAPI_DataMapOfShapeShape();
32 /// Adds \a theKey to me with \a theItem. Returns True if the Key was not already in the map
33 bool bind (std::shared_ptr<GeomAPI_Shape> theKey, std::shared_ptr<GeomAPI_Shape> theItem);
35 /// Returns true if theKey is stored in the map.
36 bool isBound (std::shared_ptr<GeomAPI_Shape> theKey);
38 /// Returns the Item stored with the Key in the Map.
39 const std::shared_ptr<GeomAPI_Shape> find(std::shared_ptr<GeomAPI_Shape> theKey);
41 /// Removes the Key from the map. Returns true if the Key was in the Map
42 bool unBind(std::shared_ptr<GeomAPI_Shape> theKey);
45 ~GeomAPI_DataMapOfShapeShape();