Version: 9.16.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

◆ ~SMESHDS_TSubMeshHolder()

Member Function Documentation

◆ Add()

template<class SUBMESH >
void SMESHDS_TSubMeshHolder< SUBMESH >::Add ( int  id,
SUBMESH *  sm 
)

◆ DeleteAll()

◆ Get()

◆ GetIterator()

◆ GetMaxID()

◆ GetMinID()

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

Field Documentation

◆ myMap

◆ myVec