Chaste Release::3.1
NodeMap Class Reference

#include <NodeMap.hpp>

Collaboration diagram for NodeMap:

List of all members.

Public Member Functions

 NodeMap (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

Nodemap class used when remeshing. The map associates the indices of nodes in the old mesh with indices of nodes in the new mesh.

Definition at line 46 of file NodeMap.hpp.


Constructor & Destructor Documentation

NodeMap::NodeMap ( unsigned  size)

Constructor.

Parameters:
sizethe size of the NodeMap

Definition at line 46 of file NodeMap.cpp.

References mMap.


Member Function Documentation

unsigned NodeMap::GetNewIndex ( unsigned  oldIndex) const
bool NodeMap::IsDeleted ( unsigned  index)
bool NodeMap::IsIdentityMap ( )

Get whether the NodeMap is the identity map.

Definition at line 91 of file NodeMap.cpp.

References mMap.

Referenced by Cylindrical2dMesh::ReMesh(), MutableMesh< SPACE_DIM, SPACE_DIM >::serialize(), and MeshBasedCellPopulation< ELEMENT_DIM, SPACE_DIM >::Update().

void NodeMap::ResetToIdentity ( )

Reset the NodeMap to the identity map.

Definition at line 59 of file NodeMap.cpp.

References mMap.

Referenced by Cylindrical2dMesh::ReMesh().

void NodeMap::Resize ( unsigned  size)

Resize the NodeMap.

Parameters:
sizethe new size of the NodeMap

Definition at line 54 of file NodeMap.cpp.

References mMap.

Referenced by MutableMesh< ELEMENT_DIM, SPACE_DIM >::ReIndex(), MutableMesh< ELEMENT_DIM, SPACE_DIM >::ReMesh(), and Cylindrical2dMesh::ReMesh().

void NodeMap::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 node

Definition at line 72 of file NodeMap.cpp.

References mMap.

Referenced by TetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ExportToMesher(), MutableMesh< ELEMENT_DIM, SPACE_DIM >::ReIndex(), MutableMesh< ELEMENT_DIM, SPACE_DIM >::ReMesh(), NodesOnlyMesh< SPACE_DIM >::ReMesh(), and Cylindrical2dMesh::ReMesh().


Member Data Documentation

std::vector<unsigned> NodeMap::mMap [private]

The map is stored as an ordered vector of node indices.

Definition at line 51 of file NodeMap.hpp.

Referenced by GetNewIndex(), IsDeleted(), IsIdentityMap(), NodeMap(), ResetToIdentity(), Resize(), SetDeleted(), SetNewIndex(), and Size().


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