Chaste
Release::3.4
|
#include <VertexElementMap.hpp>
Public Member Functions | |
VertexElementMap (unsigned size) | |
void | Resize (unsigned size) |
void | ResetToIdentity () |
void | SetNewIndex (unsigned oldIndex, unsigned newIndex) |
void | SetDeleted (unsigned index) |
bool | IsDeleted (unsigned index) |
unsigned | GetNewIndex (unsigned oldIndex) const |
bool | IsIdentityMap () |
unsigned | Size () |
Private Attributes | |
std::vector< unsigned > | mMap |
VertexElementMap class used when remeshing. The map associates the indices of VertexElements in the old mesh with indices of VertexElements in the new mesh.
Definition at line 47 of file VertexElementMap.hpp.
VertexElementMap::VertexElementMap | ( | unsigned | size | ) |
Constructor.
size | the size of the VertexElementMap |
Definition at line 45 of file VertexElementMap.cpp.
References mMap.
oldIndex | the old index of a VertexElement |
Definition at line 78 of file VertexElementMap.cpp.
References EXCEPTION, and mMap.
Referenced by VertexBasedCellPopulation< SPACE_DIM >::Update().
index | the old index of a VertexElement |
Definition at line 73 of file VertexElementMap.cpp.
References mMap.
bool VertexElementMap::IsIdentityMap | ( | ) |
Definition at line 87 of file VertexElementMap.cpp.
References mMap.
void VertexElementMap::ResetToIdentity | ( | ) |
Reset the VertexElementMap to the identity map.
Definition at line 55 of file VertexElementMap.cpp.
References mMap.
void VertexElementMap::Resize | ( | unsigned | size | ) |
Resize the VertexElementMap.
size | the new size of the VertexElementMap |
Definition at line 50 of file VertexElementMap.cpp.
References mMap.
Referenced by MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::ReMesh(), and MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::RemoveDeletedNodesAndElements().
void VertexElementMap::SetDeleted | ( | unsigned | index | ) |
Mark a given old index as 'deleted' by associating it with the new index UINT_MAX.
index | the old index of a VertexElement |
Definition at line 68 of file VertexElementMap.cpp.
References mMap.
Referenced by MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::CheckForT2Swaps(), and MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::RemoveDeletedNodesAndElements().
Associate a given old index with a new index.
oldIndex | the old index of a VertexElement |
newIndex | the new index of a VertexElement |
Definition at line 63 of file VertexElementMap.cpp.
References mMap.
Referenced by MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::RemoveDeletedNodesAndElements().
unsigned VertexElementMap::Size | ( | ) |
Definition at line 99 of file VertexElementMap.cpp.
References mMap.
|
private |
The map is stored as an ordered vector of VertexElement indices.
Definition at line 52 of file VertexElementMap.hpp.
Referenced by GetNewIndex(), IsDeleted(), IsIdentityMap(), ResetToIdentity(), Resize(), SetDeleted(), SetNewIndex(), Size(), and VertexElementMap().