A binder of a sub-mesh to its ID which can be negative. More...
#include <SMESHDS_TSubMeshHolder.hxx>

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 |
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 | ||
| ) |
References SMESHDS_TSubMeshHolder< SUBMESH >::myMap, SMESHDS_TSubMeshHolder< SUBMESH >::myVec, and SMESH::SUBMESH.
Referenced by SMESH_Mesh::GetSubMesh(), and SMESHDS_Mesh::NewSubMesh().
| void SMESHDS_TSubMeshHolder< SUBMESH >::DeleteAll | ( | ) |
| SUBMESH * SMESHDS_TSubMeshHolder< SUBMESH >::Get | ( | int | id | ) | const |
| SMDS_Iterator< SUBMESH * > * SMESHDS_TSubMeshHolder< SUBMESH >::GetIterator | ( | const bool | reverse = false | ) | const |
References SMESHDS_TSubMeshHolder< SUBMESH >::GetMaxID(), SMESHDS_TSubMeshHolder< SUBMESH >::GetMinID(), SMESHDS_TSubMeshHolder< SUBMESH >::Iterator::init(), and reverse().
Referenced by SMESH_Mesh::GetGroupSubMeshesContaining(), SMESH_Mesh::HasModificationsToDiscard(), SMESH_Mesh::NotifySubMeshesHypothesisModification(), and SMESHDS_Mesh::SubMeshes().
| int SMESHDS_TSubMeshHolder< SUBMESH >::GetMaxID | ( | ) | const |
References SMESHDS_TSubMeshHolder< SUBMESH >::myMap, and SMESHDS_TSubMeshHolder< SUBMESH >::myVec.
Referenced by SMESHDS_TSubMeshHolder< SUBMESH >::GetIterator(), and SMESHDS_Mesh::MaxSubMeshIndex().
| int SMESHDS_TSubMeshHolder< SUBMESH >::GetMinID | ( | ) | const |
References SMESHDS_TSubMeshHolder< SUBMESH >::myMap.
Referenced by SMESHDS_TSubMeshHolder< SUBMESH >::GetIterator().
|
private |
|
private |