Template Read-Write Sparse Matrix Iterator Class. More...
#include <opencv2/core/mat.hpp>
Public Types | |
typedef std::forward_iterator_tag | iterator_category |
Public Member Functions | |
SparseMatIterator_ () | |
the default constructor More... | |
SparseMatIterator_ (SparseMat_< _Tp > *_m) | |
the full constructor setting the iterator to the first sparse matrix element More... | |
SparseMatIterator_ (SparseMat *_m) | |
SparseMatIterator_ (const SparseMatIterator_ &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... | |
_Tp & | operator* () const |
returns the reference to the current element More... | |
SparseMatIterator_ & | operator++ () |
moves the iterator to the next element More... | |
SparseMatIterator_ | operator++ (int) |
moves the 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... | |
SparseMatIterator_ & | operator= (const SparseMatIterator_ &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... | |
Public Attributes | |
size_t | hashidx |
const SparseMat * | m |
uchar * | ptr |
Template Read-Write Sparse Matrix Iterator Class.
This is the derived from cv::SparseMatConstIterator_ class that introduces more convenient operator *() for accessing the current element.
typedef std::forward_iterator_tag cv::SparseMatIterator_< _Tp >::iterator_category |
cv::SparseMatIterator_< _Tp >::SparseMatIterator_ | ( | ) |
the default constructor
cv::SparseMatIterator_< _Tp >::SparseMatIterator_ | ( | SparseMat_< _Tp > * | _m | ) |
the full constructor setting the iterator to the first sparse matrix element
cv::SparseMatIterator_< _Tp >::SparseMatIterator_ | ( | SparseMat * | _m | ) |
cv::SparseMatIterator_< _Tp >::SparseMatIterator_ | ( | const SparseMatIterator_< _Tp > & | it | ) |
the copy constructor
|
inherited |
returns the current node of the sparse matrix. it.node->idx is the current element index
_Tp& cv::SparseMatIterator_< _Tp >::operator* | ( | ) | const |
returns the reference to the current element
SparseMatIterator_& cv::SparseMatIterator_< _Tp >::operator++ | ( | ) |
moves the iterator to the next element
SparseMatIterator_ cv::SparseMatIterator_< _Tp >::operator++ | ( | int | ) |
moves the iterator to the next element
|
inherited |
moves iterator to the previous element
|
inherited |
moves iterator to the previous element
SparseMatIterator_& cv::SparseMatIterator_< _Tp >::operator= | ( | const SparseMatIterator_< _Tp > & | it | ) |
the assignment operator
|
inherited |
moves iterator to the element after the last element
|
inherited |
template method returning the current matrix element
|
inherited |
|
inherited |
|
inherited |