OpenCV  2.4.13.2
Open Source Computer Vision
cv::FileNodeIterator Class Reference

#include <core.hpp>

Public Member Functions

 FileNodeIterator ()
 the default constructor More...
 
 FileNodeIterator (const CvFileStorage *fs, const CvFileNode *node, size_t ofs=0)
 the full constructor set to the ofs-th element of the node More...
 
 FileNodeIterator (const FileNodeIterator &it)
 the copy constructor More...
 
FileNode operator* () const
 returns the currently observed element More...
 
FileNode operator-> () const
 accesses the currently observed element methods More...
 
FileNodeIteratoroperator++ ()
 moves iterator to the next node More...
 
FileNodeIterator operator++ (int)
 moves iterator to the next node More...
 
FileNodeIteratoroperator-- ()
 moves iterator to the previous node More...
 
FileNodeIterator operator-- (int)
 moves iterator to the previous node More...
 
FileNodeIteratoroperator+= (int ofs)
 moves iterator forward by the specified offset (possibly negative) More...
 
FileNodeIteratoroperator-= (int ofs)
 moves iterator backward by the specified offset (possibly negative) More...
 
FileNodeIteratorreadRaw (const string &fmt, uchar *vec, size_t maxCount=(size_t) INT_MAX)
 reads the next maxCount elements (or less, if the sequence/mapping last element occurs earlier) to the buffer with the specified format More...
 

Public Attributes

const CvFileStoragefs
 
const CvFileNodecontainer
 
CvSeqReader reader
 
size_t remaining
 

Detailed Description

File Node Iterator

The class is used for iterating sequences (usually) and mappings.

Constructor & Destructor Documentation

§ FileNodeIterator() [1/3]

cv::FileNodeIterator::FileNodeIterator ( )

the default constructor

§ FileNodeIterator() [2/3]

cv::FileNodeIterator::FileNodeIterator ( const CvFileStorage fs,
const CvFileNode node,
size_t  ofs = 0 
)

the full constructor set to the ofs-th element of the node

§ FileNodeIterator() [3/3]

cv::FileNodeIterator::FileNodeIterator ( const FileNodeIterator it)

the copy constructor

Member Function Documentation

§ operator*()

FileNode cv::FileNodeIterator::operator* ( ) const
inline

returns the currently observed element

§ operator++() [1/2]

FileNodeIterator& cv::FileNodeIterator::operator++ ( )

moves iterator to the next node

§ operator++() [2/2]

FileNodeIterator cv::FileNodeIterator::operator++ ( int  )

moves iterator to the next node

§ operator+=()

FileNodeIterator& cv::FileNodeIterator::operator+= ( int  ofs)

moves iterator forward by the specified offset (possibly negative)

§ operator--() [1/2]

FileNodeIterator& cv::FileNodeIterator::operator-- ( )

moves iterator to the previous node

§ operator--() [2/2]

FileNodeIterator cv::FileNodeIterator::operator-- ( int  )

moves iterator to the previous node

§ operator-=()

FileNodeIterator& cv::FileNodeIterator::operator-= ( int  ofs)

moves iterator backward by the specified offset (possibly negative)

§ operator->()

FileNode cv::FileNodeIterator::operator-> ( ) const
inline

accesses the currently observed element methods

§ readRaw()

FileNodeIterator& cv::FileNodeIterator::readRaw ( const string &  fmt,
uchar vec,
size_t  maxCount = (size_t) INT_MAX 
)

reads the next maxCount elements (or less, if the sequence/mapping last element occurs earlier) to the buffer with the specified format

Member Data Documentation

§ container

const CvFileNode* cv::FileNodeIterator::container

§ fs

const CvFileStorage* cv::FileNodeIterator::fs

§ reader

CvSeqReader cv::FileNodeIterator::reader

§ remaining

size_t cv::FileNodeIterator::remaining

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