OpenCV  2.4.13.7
Open Source Computer Vision
cv::SeqIterator< _Tp > Class Template Reference

#include <core.hpp>

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

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...
 
void seek (size_t pos)
 positions the iterator within the sequence More...
 
size_t tell () const
 reports the current iterator position 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-- ()
 moves iterator to the previous sequence element More...
 
SeqIterator operator-- (int) const
 moves iterator to the previous sequence element More...
 
SeqIteratoroperator+= (int)
 moves iterator forward by the specified offset (possibly negative) More...
 
SeqIteratoroperator-= (int)
 moves iterator backward by the specified offset (possibly negative) More...
 

Public Attributes

int index
 
- Public Attributes inherited from CvSeqReader
int header_size
 
CvSeqseq
 
CvSeqBlockblock
 
scharptr
 
scharblock_min
 
scharblock_max
 
int delta_index
 
scharprev_elem
 

Detailed Description

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

STL-style Sequence Iterator inherited from the CvSeqReader structure

Constructor & Destructor Documentation

§ SeqIterator() [1/2]

template<typename _Tp >
cv::SeqIterator< _Tp >::SeqIterator ( )
inline

the default constructor

§ SeqIterator() [2/2]

template<typename _Tp >
cv::SeqIterator< _Tp >::SeqIterator ( const Seq< _Tp > &  seq,
bool  seekEnd = false 
)
inline

the constructor setting the iterator to the beginning or to the end of the sequence

Member Function Documentation

§ operator*() [1/2]

template<typename _Tp >
_Tp & cv::SeqIterator< _Tp >::operator* ( )
inline

returns reference to the current sequence element

§ operator*() [2/2]

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

returns read-only reference to the current sequence element

§ operator++() [1/2]

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

moves iterator to the next sequence element

§ operator++() [2/2]

template<typename _Tp >
SeqIterator< _Tp > cv::SeqIterator< _Tp >::operator++ ( int  ) const
inline

moves iterator to the next sequence element

§ operator+=()

template<typename _Tp >
SeqIterator< _Tp > & cv::SeqIterator< _Tp >::operator+= ( int  delta)
inline

moves iterator forward by the specified offset (possibly negative)

§ operator--() [1/2]

template<typename _Tp >
SeqIterator< _Tp > & cv::SeqIterator< _Tp >::operator-- ( )
inline

moves iterator to the previous sequence element

§ operator--() [2/2]

template<typename _Tp >
SeqIterator< _Tp > cv::SeqIterator< _Tp >::operator-- ( int  ) const
inline

moves iterator to the previous sequence element

§ operator-=()

template<typename _Tp >
SeqIterator< _Tp > & cv::SeqIterator< _Tp >::operator-= ( int  delta)
inline

moves iterator backward by the specified offset (possibly negative)

§ seek()

template<typename _Tp >
void cv::SeqIterator< _Tp >::seek ( size_t  pos)
inline

positions the iterator within the sequence

§ tell()

template<typename _Tp >
size_t cv::SeqIterator< _Tp >::tell ( ) const
inline

reports the current iterator position

Member Data Documentation

§ index

template<typename _Tp>
int cv::SeqIterator< _Tp >::index

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