SHAPER  9.12.0
GeomAPI_DataMapOfShapeMapOfShapes Class Reference

DataMap of Shape - Map of Shapes defined by TopoDS_Shapes. More...

Inheritance diagram for GeomAPI_DataMapOfShapeMapOfShapes:
Inheritance graph

Data Structures

class  iterator
 

Public Types

typedef iterator const_iterator
 

Public Member Functions

GEOMAPI_EXPORT GeomAPI_DataMapOfShapeMapOfShapes ()
 Constructor.Creates empty map. More...
 
GEOMAPI_EXPORT bool bind (const std::shared_ptr< GeomAPI_Shape > theKey, const ListOfShape &theItems)
 Binds list of shapes to the key shape. More...
 
GEOMAPI_EXPORT bool add (const std::shared_ptr< GeomAPI_Shape > theKey, const std::shared_ptr< GeomAPI_Shape > theItem)
 Adds item to the map bounded to the key. More...
 
GEOMAPI_EXPORT bool isBound (const std::shared_ptr< GeomAPI_Shape > theKey) const
 
GEOMAPI_EXPORT bool find (const std::shared_ptr< GeomAPI_Shape > theKey, ListOfShape &theItems) const
 
GEOMAPI_EXPORT bool unBind (const std::shared_ptr< GeomAPI_Shape > theKey)
 Undinds shapes from theKey. More...
 
GEOMAPI_EXPORT void clear ()
 Clears map. More...
 
GEOMAPI_EXPORT int size () const
 
GEOMAPI_EXPORT iterator begin ()
 
GEOMAPI_EXPORT const_iterator begin () const
 
GEOMAPI_EXPORT iterator end ()
 
GEOMAPI_EXPORT const_iterator end () const
 
template<class T >
T * implPtr ()
 Returns the pointer to the impl. More...
 
template<class T >
const T * implPtr () const
 Returns the pointer to the impl. More...
 
template<class T >
const T & impl () const
 Returns the reference object of the impl. More...
 
template<class T >
void setImpl (T *theImpl)
 Updates the impl (deletes the old one) More...
 
GEOMAPI_EXPORT bool empty () const
 Returns true if the impl is empty. More...
 

Detailed Description

DataMap of Shape - Map of Shapes defined by TopoDS_Shapes.

Constructor & Destructor Documentation

◆ GeomAPI_DataMapOfShapeMapOfShapes()

GeomAPI_DataMapOfShapeMapOfShapes::GeomAPI_DataMapOfShapeMapOfShapes ( )

Constructor.Creates empty map.

Member Function Documentation

◆ bind()

bool GeomAPI_DataMapOfShapeMapOfShapes::bind ( const std::shared_ptr< GeomAPI_Shape theKey,
const ListOfShape &  theItems 
)

Binds list of shapes to the key shape.

Parameters
[in]theKeykey shape.
[in]theItemslist of shapes. If shapes have duplications in list only one will be stored.
Returns
true if items bound successfully.

◆ add()

bool GeomAPI_DataMapOfShapeMapOfShapes::add ( const std::shared_ptr< GeomAPI_Shape theKey,
const std::shared_ptr< GeomAPI_Shape theItem 
)

Adds item to the map bounded to the key.

Parameters
[in]theKeykey shape.
[in]theItemitem shape.
Returns
true if item bounded successfully. False if it is already bound.

◆ isBound()

bool GeomAPI_DataMapOfShapeMapOfShapes::isBound ( const std::shared_ptr< GeomAPI_Shape theKey) const
Returns
true if theKey is stored in the map.

◆ find()

bool GeomAPI_DataMapOfShapeMapOfShapes::find ( const std::shared_ptr< GeomAPI_Shape theKey,
ListOfShape &  theItems 
) const
Returns
list of shapes bounded to theKey.

◆ unBind()

bool GeomAPI_DataMapOfShapeMapOfShapes::unBind ( const std::shared_ptr< GeomAPI_Shape theKey)

Undinds shapes from theKey.

◆ clear()

void GeomAPI_DataMapOfShapeMapOfShapes::clear ( )

Clears map.

◆ size()

int GeomAPI_DataMapOfShapeMapOfShapes::size ( ) const
Returns
size of map.

◆ implPtr() [1/2]

template<class T >
T* GeomAPI_Interface::implPtr ( )
inlineinherited

Returns the pointer to the impl.

◆ implPtr() [2/2]

template<class T >
const T* GeomAPI_Interface::implPtr ( ) const
inlineinherited

Returns the pointer to the impl.

◆ impl()

template<class T >
const T& GeomAPI_Interface::impl ( ) const
inlineinherited

Returns the reference object of the impl.

◆ setImpl()

template<class T >
void GeomAPI_Interface::setImpl ( T *  theImpl)
inlineinherited

Updates the impl (deletes the old one)

◆ empty()

bool GeomAPI_Interface::empty ( ) const
inherited

Returns true if the impl is empty.