latest version v1.9 - last update 10 Apr 2010 |
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>
Public Member Functions | |
const_iterator () | |
const_iterator (const const_iterator &other) | |
const_iterator & | operator++ () |
const_iterator | operator++ (int) |
const_iterator & | operator-- () |
const_iterator | operator-- (int) |
bool | operator== (const const_iterator &other) const |
bool | operator!= (const const_iterator &other) const |
const float & | operator* () const |
const_iterator & | operator= (const const_iterator &other) |
Protected Member Functions | |
const_iterator (const mapType::const_iterator &iter) |
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.
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)
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