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

lti::sparseHistogram::const_iterator Class Reference

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

#include <ltiSparseHistogram.h>

List of all members.

Public Member Functions

 const_iterator ()
 const_iterator (const const_iterator &other)
const_iteratoroperator++ ()
const_iterator operator++ (int)
const_iteratoroperator-- ()
const_iterator operator-- (int)
bool operator== (const const_iterator &other) const
bool operator!= (const const_iterator &other) const
const float & operator* () const
const_iteratoroperator= (const const_iterator &other)

Protected Member Functions

 const_iterator (const mapType::const_iterator &iter)

Detailed Description

Similar to the const_iterators of the sparse matrix, these iterators allow read-only 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::const_iterator::const_iterator (  )  [inline]

Default constructor.

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

copy constructor

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

protected constructor (for internal use only)


Member Function Documentation

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

compare if both pointed positions are different

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

get pointed data

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

advance to next item

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

advance to next item

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

recede to previous item

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

recede to previous item

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

copy member

bool lti::sparseHistogram::const_iterator::operator== ( const 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