LineIterator Class Reference

line iterator generator More...

#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
LineIteratoroperator++ ()
LineIterator operator++ (int)
ExtentIterator GetNextLine ()

Detailed Description

line iterator generator

generates consecutive lines over given extent

Definition at line 41 of file line_iterator.hh.


Constructor & Destructor Documentation

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)


Member Function Documentation

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++ ( int   ) 

Postfix increase operator.

LineIterator& operator++ (  ) 

Prefix increase operator.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated on 10 Nov 2016 for OpenStructure by  doxygen 1.6.1