Chaste Release::3.1
VertexElementMap Class Reference

#include <VertexElementMap.hpp>

Collaboration diagram for VertexElementMap:

List of all members.

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< unsignedmMap

Detailed Description

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.


Constructor & Destructor Documentation

VertexElementMap::VertexElementMap ( unsigned  size)

Constructor.

Parameters:
sizethe size of the VertexElementMap

Definition at line 45 of file VertexElementMap.cpp.

References mMap.


Member Function Documentation

unsigned VertexElementMap::GetNewIndex ( unsigned  oldIndex) const

Get the new index associated with a given old index.

Parameters:
oldIndexthe old index of a VertexElement

Definition at line 78 of file VertexElementMap.cpp.

References EXCEPTION, and mMap.

bool VertexElementMap::IsDeleted ( unsigned  index)

Get whether a given old index is marked as 'deleted'.

Parameters:
indexthe old index of a VertexElement

Definition at line 73 of file VertexElementMap.cpp.

References mMap.

bool VertexElementMap::IsIdentityMap ( )

Get whether the VertexElementMap is the identity map.

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.

Parameters:
sizethe new size of the VertexElementMap

Definition at line 50 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.

Parameters:
indexthe old index of a VertexElement

Definition at line 68 of file VertexElementMap.cpp.

References mMap.

Referenced by MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::RemoveDeletedNodesAndElements().

void VertexElementMap::SetNewIndex ( unsigned  oldIndex,
unsigned  newIndex 
)

Associate a given old index with a new index.

Parameters:
oldIndexthe old index of a VertexElement
newIndexthe 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 ( )

Get the size of the VertexElementMap.

Definition at line 99 of file VertexElementMap.cpp.

References mMap.


Member Data Documentation

std::vector<unsigned> VertexElementMap::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().


The documentation for this class was generated from the following files: