OpenCV
3.4.3
Open Source Computer Vision
|
Template Read-Only Sparse Matrix Iterator Class. More...
#include "mat.hpp"
Public Types | |
typedef std::forward_iterator_tag | iterator_category |
Public Member Functions | |
SparseMatConstIterator_ () | |
the default constructor More... | |
SparseMatConstIterator_ (const SparseMat_< _Tp > *_m) | |
the full constructor setting the iterator to the first sparse matrix element More... | |
SparseMatConstIterator_ (const SparseMat *_m) | |
SparseMatConstIterator_ (const SparseMatConstIterator_ &it) | |
the copy constructor More... | |
const _Tp & | operator* () const |
the element access operator More... | |
SparseMatConstIterator_ & | operator++ () |
moves iterator to the next element More... | |
SparseMatConstIterator_ | operator++ (int) |
moves iterator to the next element More... | |
SparseMatConstIterator_ & | operator= (const SparseMatConstIterator_ &it) |
the assignment operator More... | |
Public Member Functions inherited from cv::SparseMatConstIterator | |
SparseMatConstIterator () | |
the default constructor More... | |
SparseMatConstIterator (const SparseMat *_m) | |
the full constructor setting the iterator to the first sparse matrix element More... | |
SparseMatConstIterator (const SparseMatConstIterator &it) | |
the copy constructor More... | |
const SparseMat::Node * | node () const |
returns the current node of the sparse matrix. it.node->idx is the current element index More... | |
SparseMatConstIterator & | operator++ () |
moves iterator to the next element More... | |
SparseMatConstIterator | operator++ (int) |
moves iterator to the next element More... | |
SparseMatConstIterator & | operator-- () |
moves iterator to the previous element More... | |
SparseMatConstIterator | operator-- (int) |
moves iterator to the previous element More... | |
SparseMatConstIterator & | operator= (const SparseMatConstIterator &it) |
the assignment operator More... | |
void | seekEnd () |
moves iterator to the element after the last element More... | |
template<typename _Tp > | |
const _Tp & | value () const |
template method returning the current matrix element More... | |
Additional Inherited Members | |
Public Attributes inherited from cv::SparseMatConstIterator | |
size_t | hashidx |
const SparseMat * | m |
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 |
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 SparseMat * | _m | ) |
cv::SparseMatConstIterator_< _Tp >::SparseMatConstIterator_ | ( | const SparseMatConstIterator_< _Tp > & | it | ) |
the copy constructor
const _Tp& cv::SparseMatConstIterator_< _Tp >::operator* | ( | ) | const |
the element access operator
SparseMatConstIterator_& cv::SparseMatConstIterator_< _Tp >::operator++ | ( | ) |
moves iterator to the next element
SparseMatConstIterator_ cv::SparseMatConstIterator_< _Tp >::operator++ | ( | int | ) |
moves iterator to the next element
SparseMatConstIterator_& cv::SparseMatConstIterator_< _Tp >::operator= | ( | const SparseMatConstIterator_< _Tp > & | it | ) |
the assignment operator