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 | ( | ) |
| 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 |
Referenced by SMESHDS_Mesh::SubMeshes().
| int SMESHDS_TSubMeshHolder< SUBMESH >::GetMaxID | ( | ) | const |
| int SMESHDS_TSubMeshHolder< SUBMESH >::GetMinID | ( | ) | const |
|
private |
Referenced by SMESHDS_TSubMeshHolder< const SMESHDS_SubMesh >::Add(), SMESHDS_TSubMeshHolder< const SMESHDS_SubMesh >::DeleteAll(), SMESHDS_TSubMeshHolder< const SMESHDS_SubMesh >::Get(), SMESHDS_TSubMeshHolder< const SMESHDS_SubMesh >::GetMaxID(), and SMESHDS_TSubMeshHolder< const SMESHDS_SubMesh >::GetMinID().
|
private |