Chaste Commit::baa90ac2819b962188b7562f2326be23c47859a7
|
#include <Edge.hpp>
Public Member Functions | |
Edge (unsigned index) | |
Edge (unsigned index, Node< SPACE_DIM > *pNodeA, Node< SPACE_DIM > *pNodeB) | |
void | MarkAsDeleted () |
bool | IsDeleted () |
void | SetIndex (unsigned index) |
unsigned | GetIndex () const |
std::pair< unsigned, unsigned > | GetMapIndex () |
void | RemoveNodes () |
void | SetNodes (Node< SPACE_DIM > *pNodeA, Node< SPACE_DIM > *pNodeB) |
void | ReplaceNode (Node< SPACE_DIM > *pOldNode, Node< SPACE_DIM > *pNewNode) |
Node< SPACE_DIM > * | GetNode (unsigned index) const |
unsigned | GetNumNodes () |
bool | ContainsNode (Node< SPACE_DIM > *pNode) const |
c_vector< double, SPACE_DIM > | rGetCentreLocation () |
double | rGetLength () |
std::set< unsigned > | GetOtherElements (unsigned elementIndex) |
void | AddElement (unsigned elementIndex) |
void | RemoveElement (unsigned elementIndex) |
std::set< unsigned > | GetNeighbouringElementIndices () |
unsigned | GetNumElements () |
bool | IsBoundaryEdge () const |
bool | operator== (const Edge< SPACE_DIM > &rEdge) const |
Static Public Member Functions | |
static std::pair< unsigned, unsigned > | GenerateMapIndex (unsigned index1, unsigned index2) |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &archive, const unsigned int version) |
Private Attributes | |
unsigned | mIndex |
bool | mIsDeleted |
std::vector< Node< SPACE_DIM > * > | mNodes |
std::set< unsigned > | mElementIndices |
Friends | |
class | boost::serialization::access |
An edge in a mutable mesh.
bool Edge< SPACE_DIM >::ContainsNode | ( | Node< SPACE_DIM > * | pNode | ) | const |
pNode | pointer to a Node |
Definition at line 140 of file Edge.cpp.
References Node< SPACE_DIM >::GetIndex().
|
static |
Generate an ordered pair from two node indices.
index1 | Index of first node |
index2 | Index of second node |
Definition at line 56 of file Edge.cpp.
Referenced by EdgeHelper< SPACE_DIM >::GetEdgeFromNodes(), and Edge< SPACE_DIM >::GetMapIndex().
Definition at line 87 of file Edge.cpp.
References Edge< SPACE_DIM >::GenerateMapIndex().
index | local index of the Node |
Definition at line 128 of file Edge.cpp.
Referenced by Edge< SPACE_DIM >::operator==().
bool Edge< SPACE_DIM >::operator== | ( | const Edge< SPACE_DIM > & | rEdge | ) | const |
Comparison operator.
rEdge | another Edge |
Definition at line 220 of file Edge.cpp.
References Edge< SPACE_DIM >::GetNode().
|
inlineprivate |
Archive the member variables.
archive | the archive |
version | the current version of this class |
Definition at line 74 of file Edge.hpp.
References Edge< SPACE_DIM >::mElementIndices, Edge< SPACE_DIM >::mIndex, and Edge< SPACE_DIM >::mNodes.
void Edge< SPACE_DIM >::SetNodes | ( | Node< SPACE_DIM > * | pNodeA, |
Node< SPACE_DIM > * | pNodeB | ||
) |
Set the Edge's associated nodes.
pNodeA | A Node that forms one point of the edge |
pNodeB | A different Node that forms the other point of the edge |
Definition at line 102 of file Edge.cpp.
Referenced by Edge< SPACE_DIM >::Edge(), and EdgeHelper< SPACE_DIM >::GetEdgeFromNodes().
|
friend |
Elements that this edge belongs to
Definition at line 65 of file Edge.hpp.
Referenced by Edge< SPACE_DIM >::serialize().
Index of this edge within the mesh
Definition at line 56 of file Edge.hpp.
Referenced by Edge< SPACE_DIM >::serialize().
Nodes that form this edge
Definition at line 62 of file Edge.hpp.
Referenced by Edge< SPACE_DIM >::serialize().