SHAPER  9.15.0
GeomAPI_IndexedMapOfShape Class Reference

IndexedMap of Shape defined by TopoDS_Shape. More...

Inheritance diagram for GeomAPI_IndexedMapOfShape:
Inheritance graph

Public Member Functions

GEOMAPI_EXPORT GeomAPI_IndexedMapOfShape ()
 Constructor. More...
 
GEOMAPI_EXPORT GeomAPI_IndexedMapOfShape (const std::shared_ptr< GeomAPI_Shape > theMainShape)
 Constructor. More...
 
GEOMAPI_EXPORT void MapShapes (const std::shared_ptr< GeomAPI_Shape > theMainShape)
 Initialize the Map. More...
 
GEOMAPI_EXPORT int FindIndex (const std::shared_ptr< GeomAPI_Shape > theKey)
 
GEOMAPI_EXPORT int FindIndexEqualLocations (const std::shared_ptr< GeomAPI_Shape > theKey)
 
GEOMAPI_EXPORT ~GeomAPI_IndexedMapOfShape ()
 Destructor. More...
 
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

IndexedMap of Shape defined by TopoDS_Shape.

Constructor & Destructor Documentation

◆ GeomAPI_IndexedMapOfShape() [1/2]

GEOMAPI_EXPORT GeomAPI_IndexedMapOfShape::GeomAPI_IndexedMapOfShape ( )
inline

Constructor.

◆ GeomAPI_IndexedMapOfShape() [2/2]

GeomAPI_IndexedMapOfShape::GeomAPI_IndexedMapOfShape ( const std::shared_ptr< GeomAPI_Shape theMainShape)

Constructor.

◆ ~GeomAPI_IndexedMapOfShape()

GeomAPI_IndexedMapOfShape::~GeomAPI_IndexedMapOfShape ( )

Destructor.

Member Function Documentation

◆ MapShapes()

void GeomAPI_IndexedMapOfShape::MapShapes ( const std::shared_ptr< GeomAPI_Shape theMainShape)

Initialize the Map.

◆ FindIndex()

int GeomAPI_IndexedMapOfShape::FindIndex ( const std::shared_ptr< GeomAPI_Shape theKey)
Returns
index of the Key in the Map.

◆ FindIndexEqualLocations()

int GeomAPI_IndexedMapOfShape::FindIndexEqualLocations ( const std::shared_ptr< GeomAPI_Shape theKey)
Returns
index of the Key in the Map. It works also for the case of equal locations

◆ 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.