#include <AbstractMesh.hpp>
Public Member Functions | |
Node< SPACE_DIM > & | operator* () |
Node< SPACE_DIM > * | operator-> () |
bool | operator!= (const 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 315 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 | |||
) | [inline] |
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 431 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.
bool AbstractMesh< ELEMENT_DIM, SPACE_DIM >::NodeIterator::IsAllowedNode | ( | ) | [inline, private] |
Helper method to say if we're allowed to point at this node.
Definition at line 461 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++().
bool AbstractMesh< ELEMENT_DIM, SPACE_DIM >::NodeIterator::IsAtEnd | ( | ) | [inline, private] |
Helper method to say when we're at the end.
Definition at line 455 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->().
bool AbstractMesh< ELEMENT_DIM, SPACE_DIM >::NodeIterator::operator!= | ( | const AbstractMesh< ELEMENT_DIM, SPACE_DIM >::NodeIterator & | rOther | ) | [inline] |
Comparison not-equal-to.
rOther | iterator with which comparison is made |
Definition at line 413 of file AbstractMesh.hpp.
References AbstractMesh< ELEMENT_DIM, SPACE_DIM >::NodeIterator::mNodeIter.
Node< SPACE_DIM > & AbstractMesh< ELEMENT_DIM, SPACE_DIM >::NodeIterator::operator* | ( | ) | [inline] |
Dereference the iterator giving you a *reference* to the current node.
Make sure to use a reference for the result to avoid copying nodes unnecessarily.
Definition at line 399 of file AbstractMesh.hpp.
References AbstractMesh< ELEMENT_DIM, SPACE_DIM >::NodeIterator::IsAtEnd(), and AbstractMesh< ELEMENT_DIM, SPACE_DIM >::NodeIterator::mNodeIter.
AbstractMesh< ELEMENT_DIM, SPACE_DIM >::NodeIterator & AbstractMesh< ELEMENT_DIM, SPACE_DIM >::NodeIterator::operator++ | ( | ) | [inline] |
Prefix increment operator.
Definition at line 419 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.
Node< SPACE_DIM > * AbstractMesh< ELEMENT_DIM, SPACE_DIM >::NodeIterator::operator-> | ( | ) | [inline] |
Member access from a pointer.
Definition at line 406 of file AbstractMesh.hpp.
References AbstractMesh< ELEMENT_DIM, SPACE_DIM >::NodeIterator::IsAtEnd(), and AbstractMesh< ELEMENT_DIM, SPACE_DIM >::NodeIterator::mNodeIter.
std::vector<Node<SPACE_DIM> *>::iterator AbstractMesh< ELEMENT_DIM, SPACE_DIM >::NodeIterator::mNodeIter [private] |
The actual node iterator.
Definition at line 360 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->().
AbstractMesh& AbstractMesh< ELEMENT_DIM, SPACE_DIM >::NodeIterator::mrMesh [private] |
The mesh we're iterating over.
Definition at line 357 of file AbstractMesh.hpp.
Referenced by AbstractMesh< ELEMENT_DIM, SPACE_DIM >::NodeIterator::IsAtEnd(), and AbstractMesh< ELEMENT_DIM, SPACE_DIM >::NodeIterator::NodeIterator().
bool AbstractMesh< ELEMENT_DIM, SPACE_DIM >::NodeIterator::mSkipDeletedNodes [private] |
Whether to skip deleted nodes.
Definition at line 363 of file AbstractMesh.hpp.
Referenced by AbstractMesh< ELEMENT_DIM, SPACE_DIM >::NodeIterator::IsAllowedNode().