Public Types | Public Member Functions | Public Attributes
cv::SparseMatIterator_< _Tp > Class Template Reference

Template Read-Write Sparse Matrix Iterator Class. More...

#include <core.hpp>

Inherits cv::SparseMatConstIterator_< _Tp >.

List of all members.

Public Types

typedef std::forward_iterator_tag iterator_category

Public Member Functions

 SparseMatIterator_ ()
 the default constructor
 SparseMatIterator_ (SparseMat_< _Tp > *_m)
 the full constructor setting the iterator to the first sparse matrix element
 SparseMatIterator_ (const SparseMatIterator_ &it)
 the copy constructor
SparseMatIterator_operator= (const SparseMatIterator_ &it)
 the assignment operator
_Tp & operator* () const
 returns the reference to the current element
SparseMatIterator_operator++ ()
 moves the iterator to the next element
SparseMatIterator_ operator++ (int)
 moves the iterator to the next element
template<typename _Tp >
const _Tp & value () const
 template method returning the current matrix element
const SparseMat::Nodenode () const
 returns the current node of the sparse matrix. it.node->idx is the current element index
SparseMatConstIteratoroperator-- ()
 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 SparseMatm
size_t hashidx
ucharptr

Detailed Description

template<typename _Tp>
class cv::SparseMatIterator_< _Tp >

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.


Member Typedef Documentation

template<typename _Tp>
typedef std::forward_iterator_tag cv::SparseMatIterator_< _Tp >::iterator_category

Constructor & Destructor Documentation

template<typename _Tp >
cv::SparseMatIterator_< _Tp >::SparseMatIterator_ ( )

the default constructor

template<typename _Tp >
cv::SparseMatIterator_< _Tp >::SparseMatIterator_ ( SparseMat_< _Tp > *  _m)

the full constructor setting the iterator to the first sparse matrix element

template<typename _Tp >
cv::SparseMatIterator_< _Tp >::SparseMatIterator_ ( const SparseMatIterator_< _Tp > &  it)

the copy constructor


Member Function Documentation

template<typename _Tp >
SparseMatIterator_< _Tp > & cv::SparseMatIterator_< _Tp >::operator= ( const SparseMatIterator_< _Tp > &  it)

the assignment operator

template<typename _Tp >
_Tp & cv::SparseMatIterator_< _Tp >::operator* ( ) const

returns the reference to the current element

Reimplemented from cv::SparseMatConstIterator_< _Tp >.

template<typename _Tp >
SparseMatIterator_< _Tp > & cv::SparseMatIterator_< _Tp >::operator++ ( )

moves the iterator to the next element

Reimplemented from cv::SparseMatConstIterator_< _Tp >.

template<typename _Tp >
SparseMatIterator_< _Tp > cv::SparseMatIterator_< _Tp >::operator++ ( int  )

moves the iterator to the next element

Reimplemented from cv::SparseMatConstIterator_< _Tp >.

template<typename _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

moves iterator to the element after the last element


Member Data Documentation


The documentation for this class was generated from the following files: