Version: 8.3.0
SMESHDS_TSubMeshHolder< SUBMESH > Class Template Reference

A binder of a sub-mesh to its ID which can be negative. More...

#include <SMESHDS_TSubMeshHolder.hxx>

Inheritance diagram for SMESHDS_TSubMeshHolder< SUBMESH >:

Data Structures

struct  Iterator
 

Public Member Functions

 ~SMESHDS_TSubMeshHolder ()
 
void Add (int id, SUBMESH *sm)
 
SUBMESH * Get (int id) const
 
void DeleteAll ()
 
int GetMinID () const
 
int GetMaxID () const
 
SMDS_Iterator< SUBMESH * > * GetIterator (const bool reverse=false) const
 

Private Attributes

std::vector< SUBMESH * > myVec
 
std::map< int, SUBMESH * > myMap
 

Detailed Description

template<class SUBMESH>
class SMESHDS_TSubMeshHolder< SUBMESH >

A binder of a sub-mesh to its ID which can be negative.

Provides fast access to a sub-mesh by its ID.

Issue 52457: Addition of hypotheses is 8 time longer than meshing.

Constructor & Destructor Documentation

template<class SUBMESH>
SMESHDS_TSubMeshHolder< SUBMESH >::~SMESHDS_TSubMeshHolder ( )

Member Function Documentation

template<class SUBMESH>
void SMESHDS_TSubMeshHolder< SUBMESH >::Add ( int  id,
SUBMESH *  sm 
)
template<class SUBMESH>
SUBMESH* SMESHDS_TSubMeshHolder< SUBMESH >::Get ( int  id) const
template<class SUBMESH>
SMDS_Iterator< SUBMESH* >* SMESHDS_TSubMeshHolder< SUBMESH >::GetIterator ( const bool  reverse = false) const

Referenced by SMESHDS_Mesh::SubMeshes().

template<class SUBMESH>
int SMESHDS_TSubMeshHolder< SUBMESH >::GetMaxID ( ) const
template<class SUBMESH>
int SMESHDS_TSubMeshHolder< SUBMESH >::GetMinID ( ) const

Field Documentation