cv::SparseMatIterator_< _Tp > Class Template Reference 核心功能 » 基本结构


Template Read-Write Sparse Matrix Iterator Class. 更多...

#include <opencv2/core/mat.hpp>

Inheritance diagram for cv::SparseMatIterator_< _Tp >:
cv::SparseMatConstIterator_< _Tp > cv::SparseMatConstIterator

公共类型

typedef std::forward_iterator_tag  iterator_category
 
-  Public Types inherited from cv::SparseMatConstIterator_< _Tp >
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_ ( SparseMat *_m)
 
  SparseMatIterator_ (const SparseMatIterator_ &it)
  the copy constructor 更多...
 
_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 更多...
 
SparseMatIterator_ operator= (const SparseMatIterator_ &it)
  the assignment operator 更多...
 
-  Public Member Functions inherited from cv::SparseMatConstIterator_< _Tp >
  SparseMatConstIterator_ ()
  the default constructor 更多...
 
  SparseMatConstIterator_ (const SparseMat_ < _Tp > *_m)
  the full constructor setting the iterator to the first sparse matrix element 更多...
 
  SparseMatConstIterator_ (const SparseMat *_m)
 
  SparseMatConstIterator_ (const SparseMatConstIterator_ &it)
  the copy constructor 更多...
 
const _Tp &  operator* () const
  the element access operator 更多...
 
SparseMatConstIterator_ operator++ ()
  moves iterator to the next element 更多...
 
SparseMatConstIterator_   operator++ (int)
  moves iterator to the next element 更多...
 
SparseMatConstIterator_ operator= (const SparseMatConstIterator_ &it)
  the assignment operator 更多...
 
-  Public Member Functions inherited from cv::SparseMatConstIterator
  SparseMatConstIterator ()
  the default constructor 更多...
 
  SparseMatConstIterator (const SparseMat *_m)
  the full constructor setting the iterator to the first sparse matrix element 更多...
 
  SparseMatConstIterator (const SparseMatConstIterator &it)
  the copy constructor 更多...
 
const SparseMat::Node node () const
  returns the current node of the sparse matrix. it.node->idx is the current element index 更多...
 
SparseMatConstIterator operator++ ()
  moves iterator to the next element 更多...
 
SparseMatConstIterator   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 更多...
 
SparseMatConstIterator operator= (const SparseMatConstIterator &it)
  the assignment operator 更多...
 
void  seekEnd ()
  moves iterator to the element after the last element 更多...
 
template<typename _Tp >
const _Tp &  value () const
  template method returning the current matrix element 更多...
 

额外继承成员

-  Public Attributes inherited from cv::SparseMatConstIterator
size_t  hashidx
 
const SparseMat m
 
uchar ptr
 

详细描述

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

◆  iterator_category

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

Constructor & Destructor Documentation

◆  SparseMatIterator_() [1/4]

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

the default constructor

◆  SparseMatIterator_() [2/4]

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

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

◆  SparseMatIterator_() [3/4]

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

◆  SparseMatIterator_() [4/4]

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

the copy constructor

成员函数文档编制

◆  operator*()

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

returns the reference to the current element

◆  operator++() [1/2]

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

moves the iterator to the next element

◆  operator++() [2/2]

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

moves the iterator to the next element

◆  operator=()

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

the assignment operator


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