Read-write Sparse Matrix Iterator. More...
#include <core.hpp>
Inherits cv::SparseMatConstIterator.
Public Member Functions | |
SparseMatIterator () | |
the default constructor | |
SparseMatIterator (SparseMat *_m) | |
the full constructor setting the iterator to the first sparse matrix element | |
SparseMatIterator (SparseMat *_m, const int *idx) | |
the full constructor setting the iterator to the specified sparse matrix element | |
SparseMatIterator (const SparseMatIterator &it) | |
the copy constructor | |
SparseMatIterator & | operator= (const SparseMatIterator &it) |
the assignment operator | |
template<typename _Tp > | |
_Tp & | value () const |
returns read-write reference to the current sparse matrix element | |
SparseMat::Node * | node () const |
returns pointer to the current sparse matrix node. it.node->idx is the index of the current element (do not modify it!) | |
SparseMatIterator & | operator++ () |
moves iterator to the next element | |
SparseMatIterator | operator++ (int) |
moves iterator to the next element | |
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 |
Read-write Sparse Matrix Iterator.
The class is similar to cv::SparseMatConstIterator, but can be used for in-place modification of the matrix elements.
cv::SparseMatIterator::SparseMatIterator | ( | ) |
the default constructor
cv::SparseMatIterator::SparseMatIterator | ( | SparseMat * | _m | ) |
the full constructor setting the iterator to the first sparse matrix element
cv::SparseMatIterator::SparseMatIterator | ( | SparseMat * | _m, | |
const int * | idx | |||
) |
the full constructor setting the iterator to the specified sparse matrix element
cv::SparseMatIterator::SparseMatIterator | ( | const SparseMatIterator & | it | ) |
the copy constructor
SparseMatIterator & cv::SparseMatIterator::operator= | ( | const SparseMatIterator & | it | ) |
the assignment operator
_Tp & cv::SparseMatIterator::value | ( | ) | const |
returns read-write reference to the current sparse matrix element
Reimplemented from cv::SparseMatConstIterator.
SparseMat::Node * cv::SparseMatIterator::node | ( | ) | const |
returns pointer to the current sparse matrix node. it.node->idx is the index of the current element (do not modify it!)
Reimplemented from cv::SparseMatConstIterator.
SparseMatIterator & cv::SparseMatIterator::operator++ | ( | ) |
moves iterator to the next element
Reimplemented from cv::SparseMatConstIterator.
SparseMatIterator cv::SparseMatIterator::operator++ | ( | int | ) |
moves iterator to the next element
Reimplemented from cv::SparseMatConstIterator.
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] |