Class cv::SparseMatIterator#

Read-write Sparse Matrix Iterator. View details

Collaboration diagram for cv::SparseMatIterator:

cv::SparseMatIterator Node1 cv::SparseMatIterator   + SparseMatIterator() + SparseMatIterator() + SparseMatIterator() + SparseMatIterator() + node() + operator++() + operator++() + operator=() + value() Node2 cv::SparseMatConstIterator   + SparseMatConstIterator() + SparseMatConstIterator() + SparseMatConstIterator() + node() + operator++() + operator++() + operator--() + operator--() + operator=() + seekEnd() + value() Node2->Node1 Node3 cv::SparseMat   + SparseMat() + SparseMat() + SparseMat() + SparseMat() + ~SparseMat() + addref() + assignTo() + channels() + clear() + clone() and 34 more... + ptr() + ptr() + ptr() + ptr() + ref() + ref() + ref() + ref() + value() + value() + value() + value() + find() + find() + find() + find() + begin() + begin() + begin() + begin() * ptr() * ptr() * ptr() * ptr() * ref() * ref() * ref() * ref() * value() * value() * value() * value() * find() * find() * find() * find() * begin() * begin() * begin() * begin() Node3->Node2 +m Node4 int     Node4->Node3 +flags Node5 cv::SparseMat::Hdr   + Hdr() + clear() Node4->Node5 +dims +refcount +size +valueOffset Node5->Node3 +hdr Node6 size_t     Node6->Node2 +hashidx Node6->Node5 +freeList +nodeCount +nodeSize Node11 std::vector< size_t >     Node6->Node11 +elements Node7 std::vector< uchar >     Node7->Node5 +pool Node8 uint8_t     Node8->Node2 +ptr Node8->Node7 +elements Node9 std::vector< T >     Node9->Node7 < uchar > Node9->Node11 < size_t > Node10 T     Node10->Node9 +elements Node11->Node5 +hashtab

cv::SparseMatIterator Node1 cv::SparseMatIterator   + SparseMatIterator() + SparseMatIterator() + SparseMatIterator() + SparseMatIterator() + node() + operator++() + operator++() + operator=() + value() Node2 cv::SparseMatConstIterator   + SparseMatConstIterator() + SparseMatConstIterator() + SparseMatConstIterator() + node() + operator++() + operator++() + operator--() + operator--() + operator=() + seekEnd() + value() Node2->Node1 Node3 cv::SparseMat   + SparseMat() + SparseMat() + SparseMat() + SparseMat() + ~SparseMat() + addref() + assignTo() + channels() + clear() + clone() and 34 more... + ptr() + ptr() + ptr() + ptr() + ref() + ref() + ref() + ref() + value() + value() + value() + value() + find() + find() + find() + find() + begin() + begin() + begin() + begin() * ptr() * ptr() * ptr() * ptr() * ref() * ref() * ref() * ref() * value() * value() * value() * value() * find() * find() * find() * find() * begin() * begin() * begin() * begin() Node3->Node2 +m Node4 int     Node4->Node3 +flags Node5 cv::SparseMat::Hdr   + Hdr() + clear() Node4->Node5 +dims +refcount +size +valueOffset Node5->Node3 +hdr Node6 size_t     Node6->Node2 +hashidx Node6->Node5 +freeList +nodeCount +nodeSize Node11 std::vector< size_t >     Node6->Node11 +elements Node7 std::vector< uchar >     Node7->Node5 +pool Node8 uint8_t     Node8->Node2 +ptr Node8->Node7 +elements Node9 std::vector< T >     Node9->Node7 < uchar > Node9->Node11 < size_t > Node10 T     Node10->Node9 +elements Node11->Node5 +hashtab

Public Member Functions#

Public Member Functions inherited from cv::SparseMatConstIterator

Return

Name

Description

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

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

const _Tp &

value()

template method returning the current matrix element

Public Attributes#

Public Attributes inherited from cv::SparseMatConstIterator

Return

Name

Description

size_t

hashidx

const SparseMat *

m

uchar *

ptr

Detailed Description#

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()#

cv::SparseMatIterator::SparseMatIterator()

the default constructor

SparseMatIterator()#

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

the copy constructor

SparseMatIterator()#

cv::SparseMatIterator::SparseMatIterator(SparseMat * _m)

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

SparseMatIterator()#

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

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

Member Function Documentation#

node()#

SparseMat::Node * cv::SparseMatIterator::node()

returns pointer to the current sparse matrix node. it.node->idx is the index of the current element (do not modify it!)

operator++()#

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

moves iterator to the next element

operator++()#

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

returns read-write reference to the current sparse matrix element

Source file#

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