![]() |
Chaste Commit::333233612e3dcc941d260418acd7b5ccdc30390e
|
#include <EdgeHelper.hpp>
Public Member Functions | |
EdgeHelper () | |
Edge< SPACE_DIM > * | GetEdgeFromNodes (Node< SPACE_DIM > *pNodeA, Node< SPACE_DIM > *pNodeB) |
Edge< SPACE_DIM > * | GetEdgeFromNodes (unsigned elementIndex, Node< SPACE_DIM > *pNodeA, Node< SPACE_DIM > *pNodeB) |
Edge< SPACE_DIM > * | GetEdge (unsigned index) const |
Edge< SPACE_DIM > * | operator[] (unsigned index) const |
void | RemoveDeletedEdges () |
unsigned | GetNumEdges () const |
Private Member Functions | |
void | UpdateEdgesMapKey () |
Private Attributes | |
std::vector< std::unique_ptr< Edge< SPACE_DIM > > > | mEdges |
std::map< std::pair< unsigned, unsigned >, Edge< SPACE_DIM > * > | mEdgesMap |
Class for facilitating the creation and management of unique edges in a vertex mesh.
Definition at line 51 of file EdgeHelper.hpp.
EdgeHelper< SPACE_DIM >::EdgeHelper | ( | ) |
Default constructor.
Definition at line 39 of file EdgeHelper.cpp.
Edge< SPACE_DIM > * EdgeHelper< SPACE_DIM >::GetEdge | ( | unsigned | index | ) | const |
index | a global Edge index |
Definition at line 80 of file EdgeHelper.cpp.
Edge< SPACE_DIM > * EdgeHelper< SPACE_DIM >::GetEdgeFromNodes | ( | Node< SPACE_DIM > * | pNodeA, |
Node< SPACE_DIM > * | pNodeB | ||
) |
Get edge from the node pairs. Construct the edge if it has not been created
Definition at line 44 of file EdgeHelper.cpp.
References Edge< SPACE_DIM >::GenerateMapIndex(), Node< SPACE_DIM >::GetIndex(), and Edge< SPACE_DIM >::SetNodes().
Edge< SPACE_DIM > * EdgeHelper< SPACE_DIM >::GetEdgeFromNodes | ( | unsigned | elementIndex, |
Node< SPACE_DIM > * | pNodeA, | ||
Node< SPACE_DIM > * | pNodeB | ||
) |
Get the edge from the node pairs and add it to element with index elementIndex
elementIndex | the index of an element to which the edge belongs |
pNodeA | pointer to first Node |
pNodeB | pointer to second Node |
Definition at line 70 of file EdgeHelper.cpp.
unsigned EdgeHelper< SPACE_DIM >::GetNumEdges | ( | ) | const |
Definition at line 142 of file EdgeHelper.cpp.
Edge< SPACE_DIM > * EdgeHelper< SPACE_DIM >::operator[] | ( | unsigned | index | ) | const |
Access operator.
index | Index of mEdges |
Definition at line 87 of file EdgeHelper.cpp.
void EdgeHelper< SPACE_DIM >::RemoveDeletedEdges | ( | ) |
Remove deleted edges.
Definition at line 94 of file EdgeHelper.cpp.
|
private |
Rebuilds node-node to edge map, which is required after removing deleted edges.
Definition at line 131 of file EdgeHelper.cpp.
|
private |
Vector owning the individual edge objects.
Definition at line 58 of file EdgeHelper.hpp.
|
private |
Explicit map between the two node global indices and the edge they represent.
Definition at line 63 of file EdgeHelper.hpp.