]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/GeomAPI/GeomAPI_DataMapOfShapeMapOfShapes.h
Salome HOME
Issue #1369: Added "SubShapes" feature.
[modules/shaper.git] / src / GeomAPI / GeomAPI_DataMapOfShapeMapOfShapes.h
index 5dd4dbd4d67fc3cb9c487841a7b98ef6bc5ab6fc..1d2c55911c524851fdf2697bbd0499a51b5d92b8 100644 (file)
@@ -7,33 +7,30 @@
 #ifndef GeomAPI_DataMapOfShapeMapOfShapes_H_
 #define GeomAPI_DataMapOfShapeMapOfShapes_H_
 
-#include <GeomAPI_Interface.h>
+#include "GeomAPI_Interface.h"
 
-#include <GeomAPI_Shape.h>
+#include "GeomAPI_Shape.h"
 
-/**\class GeomAPI_DataMapOfShapeMapOfShapes
- * \ingroup DataModel
- * \brief DataMap of Shape - Map of Shapes defined by TopoDS_Shapes
- */
+/// \class GeomAPI_DataMapOfShapeMapOfShapes
+/// \ingroup DataModel
+/// \brief DataMap of Shape - Map of Shapes defined by TopoDS_Shapes
 class GeomAPI_DataMapOfShapeMapOfShapes : public GeomAPI_Interface
 {
 public:
   /// Constructor.Creates empty map.
   GEOMAPI_EXPORT GeomAPI_DataMapOfShapeMapOfShapes();
 
-  /** \brief Binds list of shapes to the key shape.
-      \param[in] theKey key shape.
-      \param[in] theItems list of shapes. If shapes have duplications in list only one will be stored.
-      \returns true if items bound successfully.
-   */
+  /// \brief Binds list of shapes to the key shape.
+  /// \param[in] theKey key shape.
+  /// \param[in] theItems list of shapes. If shapes have duplications in list only one will be stored.
+  /// \returns true if items bound successfully.
   GEOMAPI_EXPORT bool bind(const std::shared_ptr<GeomAPI_Shape> theKey,
                            const ListOfShape& theItems);
 
-  /** \brief Adds item to the map bounded to the key.
-      \param[in] theKey key shape.
-      \param[in] theItem item shape.
-      \returns true if item bounded successfully. False if it is already bound.
-   */
+  /// \brief Adds item to the map bounded to the key.
+  /// \param[in] theKey key shape.
+  /// \param[in] theItem item shape.
+  /// \returns true if item bounded successfully. False if it is already bound.
   GEOMAPI_EXPORT bool add(const std::shared_ptr<GeomAPI_Shape> theKey,
                           const std::shared_ptr<GeomAPI_Shape> theItem);
 
@@ -47,6 +44,9 @@ public:
   /// Undinds shapes from theKey.
   GEOMAPI_EXPORT bool unBind(const std::shared_ptr<GeomAPI_Shape> theKey);
 
+  /// Clears map.
+  GEOMAPI_EXPORT void clear();
+
   /// \return size of map.
   GEOMAPI_EXPORT int size() const;
 };