Chaste Commit::baa90ac2819b962188b7562f2326be23c47859a7
TetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::EdgeIterator Class Reference

#include <TetrahedralMesh.hpp>

+ Collaboration diagram for TetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::EdgeIterator:

Public Member Functions

Node< SPACE_DIM > * GetNodeA ()
 
Node< SPACE_DIM > * GetNodeB ()
 
bool operator!= (const typename TetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::EdgeIterator &rOther)
 
EdgeIteratoroperator++ ()
 
 EdgeIterator (TetrahedralMesh &rMesh, unsigned elemIndex)
 

Private Attributes

std::set< std::pair< unsigned, unsigned > > mEdgesVisited
 
TetrahedralMeshmrMesh
 
unsigned mElemIndex
 
unsigned mNodeALocalIndex
 
unsigned mNodeBLocalIndex
 

Detailed Description

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
class TetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::EdgeIterator

Iterator over edges in the mesh.

This class takes care of the logic to make sure that you consider each edge exactly once.

Definition at line 331 of file TetrahedralMesh.hpp.

Constructor & Destructor Documentation

◆ EdgeIterator()

Member Function Documentation

◆ GetNodeA()

◆ GetNodeB()

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
Node< SPACE_DIM > * TetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::EdgeIterator::GetNodeB ( )
Returns
a pointer to the node in the mesh at end B of the edge.

Definition at line 523 of file TetrahedralMesh.cpp.

References AbstractElement< ELEMENT_DIM, SPACE_DIM >::GetNode().

◆ operator!=()

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
bool TetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::EdgeIterator::operator!= ( const typename TetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::EdgeIterator rOther)

◆ operator++()

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
TetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::EdgeIterator & TetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::EdgeIterator::operator++ ( )

Prefix increment operator.

Returns
reference to incremented object

Definition at line 537 of file TetrahedralMesh.cpp.

References AbstractElement< ELEMENT_DIM, SPACE_DIM >::GetNodeGlobalIndex().

Member Data Documentation

◆ mEdgesVisited

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
std::set< std::pair<unsigned, unsigned> > TetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::EdgeIterator::mEdgesVisited
private

Keep track of what edges have been visited. Each edge is stored as a pair of ordered indices.

Definition at line 369 of file TetrahedralMesh.hpp.

Referenced by TetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::EdgeIterator::EdgeIterator().

◆ mElemIndex

◆ mNodeALocalIndex

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
unsigned TetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::EdgeIterator::mNodeALocalIndex
private

◆ mNodeBLocalIndex

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
unsigned TetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::EdgeIterator::mNodeBLocalIndex
private

◆ mrMesh

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
TetrahedralMesh& TetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::EdgeIterator::mrMesh
private

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