Regina Calculation Engine
|
A forward iterator that walks through all hits stored by a single CensusHits object. More...
#include <census/census.h>
Public Member Functions | |
CensusHitIterator () | |
Creates a past-the-end iterator. More... | |
CensusHitIterator (const CensusHitIterator &)=default | |
Default copy constructor. More... | |
CensusHitIterator (const CensusHit *current) | |
Creates a new iterator pointing to the given census hit. More... | |
CensusHitIterator & | operator= (const CensusHitIterator &)=default |
Default copy assignment operator. More... | |
bool | operator== (const CensusHitIterator &rhs) const |
Tests whether this and the given iterator are equal. More... | |
bool | operator!= (const CensusHitIterator &rhs) const |
Tests whether this and the given iterator are different. More... | |
CensusHitIterator & | operator++ () |
Preincrement operator. More... | |
CensusHitIterator | operator++ (int) |
Postincrement operator. More... | |
const CensusHit * | operator* () const |
Returns the census hit that this iterator is currently pointing to, or null if this iterator is past-the-end. More... | |
A forward iterator that walks through all hits stored by a single CensusHits object.
This header also specialises std::iterator_traits for this iterator class.
iter()
, which returns a CensusHitIterator; then CensusHitIterator implements next()
, which either returns the next hit in the census or else throws a StopException
if there are no more hits to return.