X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAPI%2FGeomAPI_DataMapOfShapeShape.h;h=cbc5f113c52947c28e6a74b6ce06c5ef2dc8fa58;hb=59c066f4e0b62942f48f173c9e052658ca94eaf5;hp=119cfda0ee5ad624fa213fa878d35108cf1005a3;hpb=0b06415cbaab3da89567c28ea4a7ae6ecf50511b;p=modules%2Fshaper.git diff --git a/src/GeomAPI/GeomAPI_DataMapOfShapeShape.h b/src/GeomAPI/GeomAPI_DataMapOfShapeShape.h index 119cfda0e..cbc5f113c 100644 --- a/src/GeomAPI/GeomAPI_DataMapOfShapeShape.h +++ b/src/GeomAPI/GeomAPI_DataMapOfShapeShape.h @@ -1,3 +1,5 @@ +// Copyright (C) 2014-20xx CEA/DEN, EDF R&D + // File: GeomAPI_DataMapOfShapeShape.h // Created: 28 Oct 2014 // Author: Sergey Zaritchny @@ -5,7 +7,7 @@ #ifndef GeomAPI_DataMapOfShapeShape_H_ #define GeomAPI_DataMapOfShapeShape_H_ -#include +#include #include class GeomAPI_Pnt; @@ -15,27 +17,40 @@ class GeomAPI_Dir; * \ingroup DataModel * \brief DataMap of Shape - Shape defined by TopoDS_Shapes */ - -class GEOMAPI_EXPORT GeomAPI_DataMapOfShapeShape : public GeomAPI_Interface +class GeomAPI_DataMapOfShapeShape : public GeomAPI_Interface { public: /// Creation of plane by the point and normal + GEOMAPI_EXPORT GeomAPI_DataMapOfShapeShape(); /// Clear + GEOMAPI_EXPORT void clear(); - /// Adds the Key to the Map with the Item. Returns True if the Key was not already in the map - bool bind (const boost::shared_ptr& theKey, const boost::shared_ptr& theItem); + /// Size of the map + GEOMAPI_EXPORT + int size(); + + /// Adds \a theKey to me with \a theItem. Returns True if the Key was not already in the map + GEOMAPI_EXPORT + bool bind (std::shared_ptr theKey, std::shared_ptr theItem); /// Returns true if theKey is stored in the map. - bool isBound (const boost::shared_ptr& theKey); + GEOMAPI_EXPORT + bool isBound (std::shared_ptr theKey); /// Returns the Item stored with the Key in the Map. - const boost::shared_ptr find(const boost::shared_ptr& theKey); + GEOMAPI_EXPORT + const std::shared_ptr find(std::shared_ptr theKey); /// Removes the Key from the map. Returns true if the Key was in the Map - bool unBind(const boost::shared_ptr& theKey); + GEOMAPI_EXPORT + bool unBind(std::shared_ptr theKey); + + /// Destructor + GEOMAPI_EXPORT + ~GeomAPI_DataMapOfShapeShape(); }; #endif