+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
// File: GeomAPI_DataMapOfShapeShape.cpp
// Created: 28 Oct 2014
// Author: Sergey Zaritchny
GeomAPI_DataMapOfShapeShape::GeomAPI_DataMapOfShapeShape()
:GeomAPI_Interface((void *)new TopTools_DataMapOfShapeShape){}
-/// Clear
void GeomAPI_DataMapOfShapeShape::clear()
{
implPtr<TopTools_DataMapOfShapeShape>()->Clear();
}
-/// Size
int GeomAPI_DataMapOfShapeShape::size()
{
return implPtr<TopTools_DataMapOfShapeShape>()->Extent();
}
-/// 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 (std::shared_ptr<GeomAPI_Shape> theKey, std::shared_ptr<GeomAPI_Shape> theItem)
{
bool flag(false);
return flag;
}
-/// Returns true if theKey is stored in the map.
bool GeomAPI_DataMapOfShapeShape::isBound (std::shared_ptr<GeomAPI_Shape> theKey)
{
bool flag(false);
return flag;
}
-/// Returns the Item stored with the Key in the Map. To be checked before with isBound()
const std::shared_ptr<GeomAPI_Shape> GeomAPI_DataMapOfShapeShape::find(std::shared_ptr<GeomAPI_Shape> theKey)
{
std::shared_ptr<GeomAPI_Shape> aShape(new GeomAPI_Shape());
return aShape;
}
-/// Removes the Key from the map. Returns true if the Key was in the Map
bool GeomAPI_DataMapOfShapeShape::unBind(std::shared_ptr<GeomAPI_Shape> theKey)
{
bool flag(false);
GeomAPI_DataMapOfShapeShape::~GeomAPI_DataMapOfShapeShape()
{
- if (myImpl) {
- implPtr<TopTools_DataMapOfShapeShape>()->Clear();
+ if (!empty()) {
+ implPtr<TopTools_DataMapOfShapeShape>()->Clear();
//delete myImpl;
}
- }
\ No newline at end of file
+ }