Chaste
Release::2017.1
|
#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 576 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.
Referenced by AbstractMesh< ELEMENT_DIM, SPACE_DIM >::GetNodeIteratorBegin(), and AbstractMesh< ELEMENT_DIM, SPACE_DIM >::GetNodeIteratorEnd().
|
inlineprivate |
Helper method to say if we're allowed to point at this node.
Definition at line 606 of file AbstractMesh.hpp.
References AbstractMesh< ELEMENT_DIM, SPACE_DIM >::NodeIterator::mSkipDeletedNodes.
Referenced by AbstractMesh< ELEMENT_DIM, SPACE_DIM >::NodeIterator::NodeIterator(), and AbstractMesh< ELEMENT_DIM, SPACE_DIM >::NodeIterator::operator++().
|
inlineprivate |
Helper method to say when we're at the end.
Definition at line 600 of file AbstractMesh.hpp.
References AbstractMesh< ELEMENT_DIM, SPACE_DIM >::NodeIterator::mNodeIter, AbstractMesh< ELEMENT_DIM, SPACE_DIM >::mNodes, and AbstractMesh< ELEMENT_DIM, SPACE_DIM >::NodeIterator::mrMesh.
Referenced by AbstractMesh< ELEMENT_DIM, SPACE_DIM >::NodeIterator::operator*(), AbstractMesh< ELEMENT_DIM, SPACE_DIM >::NodeIterator::operator++(), and AbstractMesh< ELEMENT_DIM, SPACE_DIM >::NodeIterator::operator->().
|
inline |
rOther | iterator with which comparison is made |
Definition at line 558 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 544 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 564 of file AbstractMesh.hpp.
References AbstractMesh< ELEMENT_DIM, SPACE_DIM >::NodeIterator::IsAllowedNode(), AbstractMesh< ELEMENT_DIM, SPACE_DIM >::NodeIterator::IsAtEnd(), and AbstractMesh< ELEMENT_DIM, SPACE_DIM >::NodeIterator::mNodeIter.
|
inline |
Member access from a pointer.
Definition at line 551 of file AbstractMesh.hpp.
References AbstractMesh< ELEMENT_DIM, SPACE_DIM >::NodeIterator::IsAtEnd(), and AbstractMesh< ELEMENT_DIM, SPACE_DIM >::NodeIterator::mNodeIter.
|
private |
The actual node iterator.
Definition at line 505 of file AbstractMesh.hpp.
Referenced by AbstractMesh< ELEMENT_DIM, SPACE_DIM >::NodeIterator::IsAtEnd(), AbstractMesh< ELEMENT_DIM, SPACE_DIM >::NodeIterator::NodeIterator(), AbstractMesh< ELEMENT_DIM, SPACE_DIM >::NodeIterator::operator!=(), AbstractMesh< ELEMENT_DIM, SPACE_DIM >::NodeIterator::operator*(), 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::IsAtEnd(), and AbstractMesh< ELEMENT_DIM, SPACE_DIM >::NodeIterator::NodeIterator().
|
private |
Whether to skip deleted nodes.
Definition at line 508 of file AbstractMesh.hpp.
Referenced by AbstractMesh< ELEMENT_DIM, SPACE_DIM >::NodeIterator::IsAllowedNode().