A binder of a sub-mesh to its ID which can be negative. Provides fast access to a sub-mesh by its ID. More...
#include <SMESHDS_TSubMeshHolder.hxx>
Classes | |
struct | Iterator |
Public Member Functions | |
void | Add (int id, SUBMESH *sm) |
void | DeleteAll () |
SUBMESH * | Get (int id) const |
SMDS_Iterator< SUBMESH * > * | GetIterator (const bool reverse=false) const |
int | GetMaxID () const |
int | GetMinID () const |
~SMESHDS_TSubMeshHolder () | |
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.
SMESHDS_TSubMeshHolder< SUBMESH >::~SMESHDS_TSubMeshHolder | ( | ) |
References SMESHDS_TSubMeshHolder< SUBMESH >::DeleteAll().
void SMESHDS_TSubMeshHolder< SUBMESH >::Add | ( | int | id, |
SUBMESH * | sm | ||
) |
Referenced by SMESHDS_Mesh::NewSubMesh().
void SMESHDS_TSubMeshHolder< SUBMESH >::DeleteAll | ( | ) |
SUBMESH * SMESHDS_TSubMeshHolder< SUBMESH >::Get | ( | int | id | ) | const |
Referenced by SMESHDS_Mesh::HasMeshElements(), and SMESHDS_Mesh::MeshElements().
SMDS_Iterator< SUBMESH * > * SMESHDS_TSubMeshHolder< SUBMESH >::GetIterator | ( | const bool | reverse = false | ) | const |
int SMESHDS_TSubMeshHolder< SUBMESH >::GetMaxID | ( | ) | const |
Referenced by SMESHDS_TSubMeshHolder< SUBMESH >::GetIterator(), and SMESHDS_Mesh::MaxSubMeshIndex().
int SMESHDS_TSubMeshHolder< SUBMESH >::GetMinID | ( | ) | const |
Referenced by SMESHDS_TSubMeshHolder< SUBMESH >::GetIterator().