Class cv::SparseMatConstIterator_#
Template Read-Only Sparse Matrix Iterator Class. View details
#include <opencv2/core/mat.hpp>Collaboration diagram for cv::SparseMatConstIterator_:
Public Member Functions#
Public Member Functions inherited from cv::SparseMatConstIterator
Return |
Name |
Description |
|---|---|---|
the default constructor |
||
the full constructor setting the iterator to the first sparse matrix element |
||
the copy constructor |
||
returns the current node of the sparse matrix. it.node->idx is the current element index |
||
moves iterator to the next element |
||
moves iterator to the next element |
||
moves iterator to the previous element |
||
moves iterator to the previous element |
||
the assignment operator |
||
|
moves iterator to the element after the last element |
|
|
template method returning the current matrix element |
Public Attributes#
Detailed Description#
Template Read-Only Sparse Matrix Iterator Class.
This is the derived from SparseMatConstIterator class that introduces more convenient operator *() for accessing the current element.
Member Typedef Documentation#
iterator_category#
typedef std::forward_iterator_tag cv::SparseMatConstIterator_::iterator_category
Constructor & Destructor Documentation#
SparseMatConstIterator_()#
cv::SparseMatConstIterator_::SparseMatConstIterator_()
the default constructor
SparseMatConstIterator_()#
cv::SparseMatConstIterator_::SparseMatConstIterator_(const SparseMat * _m)
SparseMatConstIterator_()#
cv::SparseMatConstIterator_::SparseMatConstIterator_(const SparseMat_< _Tp > * _m)
the full constructor setting the iterator to the first sparse matrix element
SparseMatConstIterator_()#
cv::SparseMatConstIterator_::SparseMatConstIterator_(const SparseMatConstIterator_ & it)
the copy constructor
Member Function Documentation#
operator*()#
const Tp & cv::SparseMatConstIterator::operator*()
the element access operator
operator++()#
SparseMatConstIterator_ & cv::SparseMatConstIterator_::operator++()
moves iterator to the next element
operator++()#
SparseMatConstIterator_ cv::SparseMatConstIterator_::operator++(int)
moves iterator to the next element
operator=()#
SparseMatConstIterator_ & cv::SparseMatConstIterator_::operator=(const SparseMatConstIterator_ & it)
the assignment operator
Source file#
The documentation for this class was generated from the following file:
opencv2/core/mat.hpp