#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 |
Definition at line 40 of file VertexElementMap.hpp.
VertexElementMap::VertexElementMap | ( | unsigned | size | ) |
Constructor.
size | the size of the VertexElementMap |
Definition at line 38 of file VertexElementMap.cpp.
References mMap.
void VertexElementMap::Resize | ( | unsigned | size | ) |
Resize the VertexElementMap.
size | the new size of the VertexElementMap |
Definition at line 43 of file VertexElementMap.cpp.
References mMap.
Referenced by MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::RemoveDeletedNodesAndElements().
void VertexElementMap::ResetToIdentity | ( | ) |
Reset the VertexElementMap to the identity map.
Definition at line 48 of file VertexElementMap.cpp.
References mMap.
void VertexElementMap::SetNewIndex | ( | unsigned | oldIndex, | |
unsigned | newIndex | |||
) |
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 56 of file VertexElementMap.cpp.
References mMap.
Referenced by 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 61 of file VertexElementMap.cpp.
References mMap.
Referenced by MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::RemoveDeletedNodesAndElements().
bool VertexElementMap::IsDeleted | ( | unsigned | index | ) |
Get whether a given old index is marked as 'deleted'.
index | the old index of a VertexElement |
Definition at line 66 of file VertexElementMap.cpp.
References mMap.
unsigned VertexElementMap::GetNewIndex | ( | unsigned | oldIndex | ) | const |
Get the new index associated with a given old index.
oldIndex | the old index of a VertexElement |
Definition at line 71 of file VertexElementMap.cpp.
bool VertexElementMap::IsIdentityMap | ( | ) |
Get whether the VertexElementMap is the identity map.
Definition at line 80 of file VertexElementMap.cpp.
References mMap.
unsigned VertexElementMap::Size | ( | ) |
Get the size of the VertexElementMap.
Definition at line 92 of file VertexElementMap.cpp.
References mMap.
std::vector<unsigned> VertexElementMap::mMap [private] |
The map is stored as an ordered vector of VertexElement indices.
Definition at line 45 of file VertexElementMap.hpp.
Referenced by GetNewIndex(), IsDeleted(), IsIdentityMap(), ResetToIdentity(), Resize(), SetDeleted(), SetNewIndex(), Size(), and VertexElementMap().