Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

Bitmap::const_iterator Class Reference

Iterator class. More...

#include <Bitmap.h>

List of all members.

Public Member Functions

Byteoperator * () throw (DviError)
 Returns the current member of the set of rows returned by the iterator.
const_iteratoroperator++ () throw (DviError)
 Increments the iterator.
bool operator== (const const_iterator &it) const
bool operator!= (const const_iterator &it) const
 ~const_iterator ()


Detailed Description

Iterator class.


Constructor & Destructor Documentation

Bitmap::const_iterator::~const_iterator  ) 
 


Member Function Documentation

Byte * Bitmap::const_iterator::operator *  )  throw (DviError)
 

Returns the current member of the set of rows returned by the iterator.

This returns a pointer to an array of Byte, with elements [0..W-1] being guaranteed to be valid, where W is the width of the bitmap. If the bitmap is uncropped, this is the total width of the bitmap as returned by method getWidth; if cropped, the width is the difference of the [2] and [0] elements of the array returned by boundingBox.

Returns:
pointer to an array of Byte
Exceptions:
DviError if the iterator is dereferenced after it has come to the end

bool Bitmap::const_iterator::operator!= const const_iterator it  )  const
 

Bitmap::const_iterator & Bitmap::const_iterator::operator++  )  throw (DviError)
 

Increments the iterator.

If the bitmap is uncropped, all the rows in the bitmap will eventually be iterator over, namely the number of rows returned by method getHeight; if it is cropped, the number of rows returned will be the difference between the [3] and [1] elements of the boundingBox array.

Returns:
the iterator
Exceptions:
DviError if the iterator is incremented after it has come to the end

bool Bitmap::const_iterator::operator== const const_iterator it  )  const
 


The documentation for this class was generated from the following files:
Generated on Sun Aug 21 18:21:03 2005 for dvi2bitmap by doxygen 1.3.8