OpenStructure
|
#include <line_iterator.hh>
Public Member Functions | |
LineIterator (const Extent &ext, unsigned int flag=(Axis::X|Axis::Y|Axis::Z)) | |
bool | AtEnd () |
void | Inc () |
ExtentIterator | GetLine () |
int | GetSize () const |
LineIterator & | operator++ () |
LineIterator | operator++ (int) |
ExtentIterator | GetNextLine () |
line iterator generator
generates consecutive lines over given extent
Definition at line 41 of file line_iterator.hh.
LineIterator | ( | const Extent & | ext, |
unsigned int | flag = (Axis::X|Axis::Y|Axis::Z) |
||
) |
Initialization with extent and flag.
Flag determines which axes are scanned by the iterator: (use the img::geometry::axis constants)
bool AtEnd | ( | ) |
return true if iterator has reached end
ExtentIterator GetLine | ( | ) |
retrieve current line (in form of an ExtentIterator)
ExtentIterator GetNextLine | ( | ) |
convenience method, but preferred!
int GetSize | ( | ) | const |
Retrieve Size of current line.
void Inc | ( | ) |
increase method
LineIterator& operator++ | ( | ) |
Prefix increase operator.
LineIterator operator++ | ( | int | ) |
Postfix increase operator.