ZBar Bar Code Reader Library  version 0.10
zbar::Symbol::PointIterator Class Reference

iteration over Point objects in a symbol location polygon. More...

Inheritance diagram for zbar::Symbol::PointIterator:
Collaboration diagram for zbar::Symbol::PointIterator:

Public Member Functions

 PointIterator (const Symbol *sym=NULL, int index=0)
 constructor. More...
 
 PointIterator (const PointIterator &iter)
 constructor. More...
 
 ~PointIterator ()
 destructor. More...
 
bool operator!= (const PointIterator &iter) const
 test if two iterators refer to the same Point in the same Symbol. More...
 
const Point operator* () const
 retrieve currently referenced Point. More...
 
PointIteratoroperator++ ()
 advance iterator to next Point. More...
 
bool operator== (const PointIterator &iter) const
 test if two iterators refer to the same Point in the same Symbol. More...
 

Private Attributes

int _index
 
const Symbol_sym
 

Detailed Description

iteration over Point objects in a symbol location polygon.

Constructor & Destructor Documentation

zbar::Symbol::PointIterator::PointIterator ( const Symbol sym = NULL,
int  index = 0 
)
inline

constructor.

References zbar::zbar_symbol_get_loc_size().

Here is the call graph for this function:

zbar::Symbol::PointIterator::PointIterator ( const PointIterator iter)
inline

constructor.

zbar::Symbol::PointIterator::~PointIterator ( )
inline

destructor.

Member Function Documentation

bool zbar::Symbol::PointIterator::operator!= ( const PointIterator iter) const
inline

test if two iterators refer to the same Point in the same Symbol.

const Point zbar::Symbol::PointIterator::operator* ( ) const
inline

retrieve currently referenced Point.

References zbar::zbar_symbol_get_loc_x(), and zbar::zbar_symbol_get_loc_y().

Here is the call graph for this function:

PointIterator& zbar::Symbol::PointIterator::operator++ ( )
inline

advance iterator to next Point.

References zbar::zbar_symbol_get_loc_size().

Here is the call graph for this function:

bool zbar::Symbol::PointIterator::operator== ( const PointIterator iter) const
inline

test if two iterators refer to the same Point in the same Symbol.

References _index, and _sym.

Member Data Documentation

int zbar::Symbol::PointIterator::_index
private

Referenced by operator==().

const Symbol* zbar::Symbol::PointIterator::_sym
private

Referenced by operator==().


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