OpenCV  3.2.0-dev
Open Source Computer Vision
cv::SeqIterator< _Tp > Class Template Reference

STL-style Sequence Iterator inherited from the CvSeqReader structure. More...

#include "core_c.h"

Inheritance diagram for cv::SeqIterator< _Tp >:
Collaboration diagram for cv::SeqIterator< _Tp >:

Public Member Functions

 SeqIterator ()
 the default constructor More...
 
 SeqIterator (const Seq< _Tp > &seq, bool seekEnd=false)
 the constructor setting the iterator to the beginning or to the end of the sequence More...
 
_Tp & operator* ()
 returns reference to the current sequence element More...
 
const _Tp & operator* () const
 returns read-only reference to the current sequence element More...
 
SeqIteratoroperator++ ()
 moves iterator to the next sequence element More...
 
SeqIterator operator++ (int) const
 moves iterator to the next sequence element More...
 
SeqIteratoroperator+= (int)
 moves iterator forward by the specified offset (possibly negative) More...
 
SeqIteratoroperator-- ()
 moves iterator to the previous sequence element More...
 
SeqIterator operator-- (int) const
 moves iterator to the previous sequence element More...
 
SeqIteratoroperator-= (int)
 moves iterator backward by the specified offset (possibly negative) More...
 
void seek (size_t pos)
 positions the iterator within the sequence More...
 
size_t tell () const
 reports the current iterator position More...
 

Public Attributes

CvSeqBlockblock
 current block More...
 
scharblock_max
 pointer to the end of block More...
 
scharblock_min
 pointer to the beginning of block More...
 
int delta_index
 = seq->first->start_index More...
 
int header_size
 
int index
 
scharprev_elem
 pointer to previous element More...
 
scharptr
 pointer to element be read next More...
 
CvSeqseq
 sequence, beign read More...
 

Detailed Description

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

STL-style Sequence Iterator inherited from the CvSeqReader structure.

Member Data Documentation

CvSeqBlock* CvSeqReader::block
inherited

current block

schar* CvSeqReader::block_max
inherited

pointer to the end of block

schar* CvSeqReader::block_min
inherited

pointer to the beginning of block

int CvSeqReader::delta_index
inherited

= seq->first->start_index

int CvSeqReader::header_size
inherited
template<typename _Tp>
int cv::SeqIterator< _Tp >::index

Referenced by cv::operator-(), and cv::operator==().

schar* CvSeqReader::prev_elem
inherited

pointer to previous element

schar* CvSeqReader::ptr
inherited

pointer to element be read next

CvSeq* CvSeqReader::seq
inherited

sequence, beign read

Referenced by cv::operator-(), and cv::operator==().


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