cv::SparseMatIterator Class Reference 核心功能 » 基本结构


Read-write Sparse Matrix Iterator. 更多...

#include <opencv2/core/mat.hpp>

Inheritance diagram for cv::SparseMatIterator:
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 更多...
 
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 更多...
 
SparseMatIterator operator= (const SparseMatIterator &it)
  the assignment operator 更多...
 
template<typename _Tp >
_Tp &  value () const
  returns read-write reference to the current sparse matrix element 更多...
 
-  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
 

详细描述

Read-write Sparse Matrix Iterator.

The class is similar to cv::SparseMatConstIterator , but can be used for in-place modification of the matrix elements.

Constructor & Destructor Documentation

◆  SparseMatIterator() [1/4]

cv::SparseMatIterator::SparseMatIterator ( )

the default constructor

◆  SparseMatIterator() [2/4]

cv::SparseMatIterator::SparseMatIterator ( SparseMat _m )

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

◆  SparseMatIterator() [3/4]

cv::SparseMatIterator::SparseMatIterator ( SparseMat _m ,
const int *  idx  
)

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

◆  SparseMatIterator() [4/4]

cv::SparseMatIterator::SparseMatIterator ( const SparseMatIterator it )

the copy constructor

成员函数文档编制

◆  node()

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!)

◆  operator++() [1/2]

SparseMatIterator & cv::SparseMatIterator::operator++ ( )

moves iterator to the next element

◆  operator++() [2/2]

SparseMatIterator cv::SparseMatIterator::operator++ ( int  )

moves iterator to the next element

◆  operator=()

SparseMatIterator & cv::SparseMatIterator::operator= ( const SparseMatIterator it )

the assignment operator

◆  value()

template<typename _Tp >
_Tp& cv::SparseMatIterator::value ( ) const

returns read-write reference to the current sparse matrix element


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