OpenStructure
|
#include <extent_iterator.hh>
Public Member Functions | |
ExtentIterator (const Extent &b, unsigned int domain=SPATIAL) | |
ExtentIterator (const ExtentIterator &i) | |
ExtentIterator & | operator= (const ExtentIterator &p) |
ExtentIterator & | operator++ () |
ExtentIterator | operator++ (int) |
ExtentIterator & | operator-- () |
ExtentIterator | operator-- (int) |
void | Inc () |
void | Dec () |
ExtentIterator & | ToStart () |
ExtentIterator & | ToEnd () |
Extent | GetExtent () const |
const Point & | GetStart () const |
const Point & | GetEnd () const |
bool | AtEnd () const |
bool | AtStart () const |
int | operator[] (int i) const |
operator Point () const | |
Extent iterator.
The extent iterator is implicitely convertible to Point, and is therefore ideally suited for Get/Set methods which take a point as an argument.
Definition at line 52 of file extent_iterator.hh.
|
explicit |
Initialize with Extent.
ExtentIterator | ( | const ExtentIterator & | i | ) |
copy ctor
bool AtEnd | ( | ) | const |
Returns true if iterator has reached end.
bool AtStart | ( | ) | const |
Returns true if iterator is at the start.
void Dec | ( | ) |
Go back to previous point.
const Point& GetEnd | ( | ) | const |
Retrieve end point.
Extent GetExtent | ( | ) | const |
Retrieve original extent.
const Point& GetStart | ( | ) | const |
Retrieve start point.
void Inc | ( | ) |
Skip ahead to next point.
operator Point | ( | ) | const |
ExtentIterator& operator++ | ( | ) |
Prefix increase operator.
ExtentIterator operator++ | ( | int | ) |
Postfix increase operator.
ExtentIterator& operator-- | ( | ) |
Prefix decrease operator.
ExtentIterator operator-- | ( | int | ) |
Postfix decrease operator.
ExtentIterator& operator= | ( | const ExtentIterator & | p | ) |
assignement op
int operator[] | ( | int | i | ) | const |
element access
ExtentIterator& ToEnd | ( | ) |
Reset to end.
ExtentIterator& ToStart | ( | ) |
Reset to start.