Template Read-Only Sparse Matrix Iterator Class. More...
#include <core.hpp>
Inherits cv::SparseMatConstIterator.
Inherited by cv::SparseMatIterator_< _Tp >.
Public Types | |
typedef std::forward_iterator_tag | iterator_category |
Public Member Functions | |
SparseMatConstIterator_ () | |
the default constructor | |
SparseMatConstIterator_ (const SparseMat_< _Tp > *_m) | |
the full constructor setting the iterator to the first sparse matrix element | |
SparseMatConstIterator_ (const SparseMatConstIterator_ &it) | |
the copy constructor | |
SparseMatConstIterator_ & | operator= (const SparseMatConstIterator_ &it) |
the assignment operator | |
const _Tp & | operator* () const |
the element access operator | |
SparseMatConstIterator_ & | operator++ () |
moves iterator to the next element | |
SparseMatConstIterator_ | operator++ (int) |
moves iterator to the next element | |
template<typename _Tp > | |
const _Tp & | value () const |
template method returning the current matrix element | |
const SparseMat::Node * | node () const |
returns the current node of the sparse matrix. it.node->idx is the current element index | |
SparseMatConstIterator & | operator-- () |
moves iterator to the previous element | |
SparseMatConstIterator | operator-- (int) |
moves iterator to the previous element | |
void | seekEnd () |
moves iterator to the element after the last element | |
Public Attributes | |
const SparseMat * | m |
size_t | hashidx |
uchar * | ptr |
Template Read-Only Sparse Matrix Iterator Class.
This is the derived from SparseMatConstIterator class that introduces more convenient operator *() for accessing the current element.
typedef std::forward_iterator_tag cv::SparseMatConstIterator_< _Tp >::iterator_category |
Reimplemented in cv::SparseMatIterator_< _Tp >.
cv::SparseMatConstIterator_< _Tp >::SparseMatConstIterator_ | ( | ) |
the default constructor
cv::SparseMatConstIterator_< _Tp >::SparseMatConstIterator_ | ( | const SparseMat_< _Tp > * | _m | ) |
the full constructor setting the iterator to the first sparse matrix element
cv::SparseMatConstIterator_< _Tp >::SparseMatConstIterator_ | ( | const SparseMatConstIterator_< _Tp > & | it | ) |
the copy constructor
SparseMatConstIterator_< _Tp > & cv::SparseMatConstIterator_< _Tp >::operator= | ( | const SparseMatConstIterator_< _Tp > & | it | ) |
the assignment operator
const _Tp & cv::SparseMatConstIterator_< _Tp >::operator* | ( | ) | const |
the element access operator
Reimplemented in cv::SparseMatIterator_< _Tp >.
SparseMatConstIterator_< _Tp > & cv::SparseMatConstIterator_< _Tp >::operator++ | ( | ) |
moves iterator to the next element
Reimplemented from cv::SparseMatConstIterator.
Reimplemented in cv::SparseMatIterator_< _Tp >.
SparseMatConstIterator_< _Tp > cv::SparseMatConstIterator_< _Tp >::operator++ | ( | int | ) |
moves iterator to the next element
Reimplemented from cv::SparseMatConstIterator.
Reimplemented in cv::SparseMatIterator_< _Tp >.
const _Tp & cv::SparseMatConstIterator::value | ( | ) | const [inherited] |
template method returning the current matrix element
Reimplemented in cv::SparseMatIterator.
const SparseMat::Node * cv::SparseMatConstIterator::node | ( | ) | const [inherited] |
returns the current node of the sparse matrix. it.node->idx is the current element index
Reimplemented in cv::SparseMatIterator.
SparseMatConstIterator& cv::SparseMatConstIterator::operator-- | ( | ) | [inherited] |
moves iterator to the previous element
SparseMatConstIterator cv::SparseMatConstIterator::operator-- | ( | int | ) | [inherited] |
moves iterator to the previous element
void cv::SparseMatConstIterator::seekEnd | ( | ) | [inherited] |
moves iterator to the element after the last element
const SparseMat* cv::SparseMatConstIterator::m [inherited] |
size_t cv::SparseMatConstIterator::hashidx [inherited] |
uchar* cv::SparseMatConstIterator::ptr [inherited] |