LTI-Lib latest version v1.9 - last update 10 Apr 2010

lti::sparseHistogram::iterator Class Reference

Similar to the iterators of the sparse matrix, these iterators allow to access the non-sparse cells of the histogram. More...

#include <ltiSparseHistogram.h>

List of all members.

Public Member Functions

 iterator ()
 iterator (const iterator &other)
iteratoroperator++ ()
iterator operator++ (int)
iteratoroperator-- ()
iterator operator-- (int)
bool operator== (const iterator &other) const
bool operator!= (const iterator &other) const
float & operator* ()
iteratoroperator= (const iterator &other)

Protected Member Functions

 iterator (const mapType::iterator &iter)

Detailed Description

Similar to the iterators of the sparse matrix, these iterators allow to access the non-sparse cells of the histogram.

This way all data of the histogram can be efficiently accessed without loosing time with the sparse valued cells.

Note that the access sequence is not defined, so this is usually required when ALL the data of the histogram needs to be changed.


Constructor & Destructor Documentation

lti::sparseHistogram::iterator::iterator (  )  [inline]

Default constructor.

lti::sparseHistogram::iterator::iterator ( const iterator other  )  [inline]

copy constructor

lti::sparseHistogram::iterator::iterator ( const mapType::iterator &  iter  )  [inline, explicit, protected]

protected constructor (for internal use only)


Member Function Documentation

bool lti::sparseHistogram::iterator::operator!= ( const iterator other  )  const [inline]

compare if both pointed positions are different

float& lti::sparseHistogram::iterator::operator* (  )  [inline]

get pointed data

iterator lti::sparseHistogram::iterator::operator++ ( int   )  [inline]

advance to next item

iterator& lti::sparseHistogram::iterator::operator++ (  )  [inline]

advance to next item

iterator lti::sparseHistogram::iterator::operator-- ( int   )  [inline]

recede to previous item

iterator& lti::sparseHistogram::iterator::operator-- (  )  [inline]

recede to previous item

iterator& lti::sparseHistogram::iterator::operator= ( const iterator other  )  [inline]

copy member

bool lti::sparseHistogram::iterator::operator== ( const iterator other  )  const [inline]

compare if both pointed positions are the same


The documentation for this class was generated from the following file:

Generated on Sat Apr 10 15:28:45 2010 for LTI-Lib by Doxygen 1.6.1