latest version v1.9 - last update 10 Apr 2010 |
Similar to the iterators of the sparse matrix, these iterators allow to access the non-sparse cells of the histogram. More...
#include <ltiSparseHistogram.h>
Public Member Functions | |
iterator () | |
iterator (const iterator &other) | |
iterator & | operator++ () |
iterator | operator++ (int) |
iterator & | operator-- () |
iterator | operator-- (int) |
bool | operator== (const iterator &other) const |
bool | operator!= (const iterator &other) const |
float & | operator* () |
iterator & | operator= (const iterator &other) |
Protected Member Functions | |
iterator (const mapType::iterator &iter) |
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.
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)
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
bool lti::sparseHistogram::iterator::operator== | ( | const iterator & | other | ) | const [inline] |
compare if both pointed positions are the same