opencv on mbed

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

SparseMatIterator_< _Tp > Class Template Reference

SparseMatIterator_< _Tp > Class Template Reference
[Basic structures]

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

#include <mat.hpp>

Inherits cv::SparseMatConstIterator_< _Tp >.

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

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.

Definition at line 3073 of file mat.hpp.


Constructor & Destructor Documentation

the default constructor

SparseMatIterator_ ( SparseMat_< _Tp > *  _m )

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

SparseMatIterator_ ( const SparseMatIterator_< _Tp > &  it )

the copy constructor


Member Function Documentation

const SparseMat::Node* node (  ) const [inherited]

returns the current node of the sparse matrix. it.node->idx is the current element index

Reimplemented in SparseMatIterator.

_Tp& operator* (  ) const

returns the reference to the current element

Reimplemented from SparseMatConstIterator_< _Tp >.

SparseMatIterator_ operator++ ( int   )

moves the iterator to the next element

Reimplemented from SparseMatConstIterator_< _Tp >.

SparseMatIterator_& operator++ (  )

moves the iterator to the next element

Reimplemented from SparseMatConstIterator_< _Tp >.

SparseMatConstIterator operator-- ( int   ) [inherited]

moves iterator to the previous element

SparseMatConstIterator& operator-- (  ) [inherited]

moves iterator to the previous element

SparseMatIterator_& operator= ( const SparseMatIterator_< _Tp > &  it )

the assignment operator

void seekEnd (  ) [inherited]

moves iterator to the element after the last element

const _Tp& value (  ) const [inherited]

template method returning the current matrix element

Reimplemented in SparseMatIterator.