--- /dev/null
+// File: GeomAPI_DataMapOfShapeShape.cpp
+// Created: 28 Oct 2014
+// Author: Sergey Zaritchny
+
+#include <GeomAPI_Shape.h>
+#include <GeomAPI_DataMapOfShapeShape.h>
+#include <TopTools_DataMapOfShapeShape.hxx>
+using namespace std;
+
+
+GeomAPI_DataMapOfShapeShape::GeomAPI_DataMapOfShapeShape()
+ :GeomAPI_Interface((void *)new TopTools_DataMapOfShapeShape){}
+
+/// Clear
+void GeomAPI_DataMapOfShapeShape::clear()
+{
+ implPtr<TopTools_DataMapOfShapeShape>()->Clear();
+}
+
+/// Adds the Key <K> to the Map <me> with the Item. Returns True if the Key was not already in the map
+bool GeomAPI_DataMapOfShapeShape::bind (const boost::shared_ptr<GeomAPI_Shape>& theKey, const boost::shared_ptr<GeomAPI_Shape>& theItem)
+{
+ bool flag(false);
+ if(implPtr<TopTools_DataMapOfShapeShape>()->Bind(theKey->impl<TopoDS_Shape>(), theItem->impl<TopoDS_Shape>()))
+ flag = true;
+ return flag;
+}
+
+/// Returns true if theKey is stored in the map.
+bool GeomAPI_DataMapOfShapeShape::isBound (const boost::shared_ptr<GeomAPI_Shape>& theKey)
+{
+ bool flag(false);
+ if(impl<TopTools_DataMapOfShapeShape>().IsBound(theKey->impl<TopoDS_Shape>()))
+ flag = true;
+ return flag;
+}
+
+/// Returns the Item stored with the Key in the Map. To be checked before with isBound()
+const boost::shared_ptr<GeomAPI_Shape> GeomAPI_DataMapOfShapeShape::find(const boost::shared_ptr<GeomAPI_Shape>& theKey)
+{
+ boost::shared_ptr<GeomAPI_Shape> aShape(new GeomAPI_Shape());
+ aShape->setImpl((void *)&(impl<TopTools_DataMapOfShapeShape>().Find(theKey->impl<TopoDS_Shape>())));
+ return aShape;
+}
+
+/// Removes the Key from the map. Returns true if the Key was in the Map
+bool GeomAPI_DataMapOfShapeShape::unBind(const boost::shared_ptr<GeomAPI_Shape>& theKey)
+{
+ bool flag(false);
+ if(implPtr<TopTools_DataMapOfShapeShape>()->UnBind(theKey->impl<TopoDS_Shape>()))
+ flag = true;
+ return flag;
+}
\ No newline at end of file
--- /dev/null
+// File: GeomAPI_DataMapOfShapeShape.h
+// Created: 28 Oct 2014
+// Author: Sergey Zaritchny
+
+#ifndef GeomAPI_DataMapOfShapeShape_H_
+#define GeomAPI_DataMapOfShapeShape_H_
+
+#include <boost/shared_ptr.hpp>
+#include <GeomAPI_Interface.h>
+
+class GeomAPI_Pnt;
+class GeomAPI_Dir;
+
+/**\class GeomAPI_DataMapOfShapeShape
+ * \ingroup DataModel
+ * \brief DataMap of Shape - Shape defined by TopoDS_Shapes
+ */
+
+class GEOMAPI_EXPORT GeomAPI_DataMapOfShapeShape : public GeomAPI_Interface
+{
+ public:
+ /// Creation of plane by the point and normal
+ GeomAPI_DataMapOfShapeShape();
+
+ /// Clear
+ void clear();
+
+ /// Adds the Key <K> to the Map <me> with the Item. Returns True if the Key was not already in the map
+ bool bind (const boost::shared_ptr<GeomAPI_Shape>& theKey, const boost::shared_ptr<GeomAPI_Shape>& theItem);
+
+ /// Returns true if theKey is stored in the map.
+ bool isBound (const boost::shared_ptr<GeomAPI_Shape>& theKey);
+
+ /// Returns the Item stored with the Key in the Map.
+ const boost::shared_ptr<GeomAPI_Shape> find(const boost::shared_ptr<GeomAPI_Shape>& theKey);
+
+ /// Removes the Key from the map. Returns true if the Key was in the Map
+ bool unBind(const boost::shared_ptr<GeomAPI_Shape>& theKey);
+};
+
+#endif
+