Chaste Commit::1fd4e48e3990e67db148bc1bc4cf6991a0049d0c
|
#include <AbstractMesh.hpp>
Public Member Functions | |
Node< SPACE_DIM > & | operator* () |
Node< SPACE_DIM > * | operator-> () |
bool | operator!= (const typename AbstractMesh< ELEMENT_DIM, SPACE_DIM >::NodeIterator &rOther) |
NodeIterator & | operator++ () |
NodeIterator (AbstractMesh< ELEMENT_DIM, SPACE_DIM > &rMesh, typename std::vector< Node< SPACE_DIM > * >::iterator nodeIter, bool skipDeletedNodes=true) | |
Private Member Functions | |
bool | IsAtEnd () |
bool | IsAllowedNode () |
Private Attributes | |
AbstractMesh & | mrMesh |
std::vector< Node< SPACE_DIM > * >::iterator | mNodeIter |
bool | mSkipDeletedNodes |
A smart iterator over the nodes in the mesh.
Definition at line 458 of file AbstractMesh.hpp.
AbstractMesh< ELEMENT_DIM, SPACE_DIM >::NodeIterator::NodeIterator | ( | AbstractMesh< ELEMENT_DIM, SPACE_DIM > & | rMesh, |
typename std::vector< Node< SPACE_DIM > * >::iterator | nodeIter, | ||
bool | skipDeletedNodes = true |
||
) |
Constructor for a new iterator.
This should not be called directly by user code; use the mesh methods AbstractMesh::GetNodeIteratorBegin and AbstractMesh::GetNodeIteratorEnd instead.
rMesh | the mesh to iterator over |
nodeIter | where to start iterating |
skipDeletedNodes | whether to include deleted nodes |
Definition at line 578 of file AbstractMesh.hpp.
References AbstractMesh< ELEMENT_DIM, SPACE_DIM >::NodeIterator::IsAllowedNode(), AbstractMesh< ELEMENT_DIM, SPACE_DIM >::NodeIterator::mNodeIter, AbstractMesh< ELEMENT_DIM, SPACE_DIM >::mNodes, and AbstractMesh< ELEMENT_DIM, SPACE_DIM >::NodeIterator::mrMesh.
|
inlineprivate |
Helper method to say if we're allowed to point at this node.
Definition at line 608 of file AbstractMesh.hpp.
Referenced by AbstractMesh< ELEMENT_DIM, SPACE_DIM >::NodeIterator::NodeIterator().
|
inlineprivate |
Helper method to say when we're at the end.
Definition at line 602 of file AbstractMesh.hpp.
Referenced by AbstractMesh< ELEMENT_DIM, SPACE_DIM >::NodeIterator::operator*().
|
inline |
rOther | iterator with which comparison is made |
Definition at line 560 of file AbstractMesh.hpp.
References AbstractMesh< ELEMENT_DIM, SPACE_DIM >::NodeIterator::mNodeIter.
|
inline |
Dereference the iterator giving you a *reference* to the current node.
Definition at line 546 of file AbstractMesh.hpp.
References AbstractMesh< ELEMENT_DIM, SPACE_DIM >::NodeIterator::IsAtEnd(), and AbstractMesh< ELEMENT_DIM, SPACE_DIM >::NodeIterator::mNodeIter.
|
inline |
Prefix increment operator.
Definition at line 566 of file AbstractMesh.hpp.
|
inline |
|
private |
The actual node iterator.
Definition at line 505 of file AbstractMesh.hpp.
Referenced by AbstractMesh< ELEMENT_DIM, SPACE_DIM >::NodeIterator::NodeIterator(), AbstractMesh< ELEMENT_DIM, SPACE_DIM >::NodeIterator::operator!=(), and AbstractMesh< ELEMENT_DIM, SPACE_DIM >::NodeIterator::operator*().
|
private |
The mesh we're iterating over.
Definition at line 502 of file AbstractMesh.hpp.
Referenced by AbstractMesh< ELEMENT_DIM, SPACE_DIM >::NodeIterator::NodeIterator().
|
private |
Whether to skip deleted nodes.
Definition at line 508 of file AbstractMesh.hpp.