Main Page | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members | Related Pages

RangeIterator Class Reference

#include <FillIterators.h>

Inheritance diagram for RangeIterator:

Inheritance graph
[legend]
Collaboration diagram for RangeIterator:

Collaboration graph
[legend]
List of all members.

Detailed Description

FillIterator that iterates over a constant range of values.

Changelog

Author: Benno List, Jenny Böhme

Date
2005/06/09 16:42:59
Author
rweber

Definition at line 21 of file FillIterators.h.

Public Member Functions

 RangeIterator (int min_, int max_)
 Constructor.

 RangeIterator (int min_, int max_, const std::string &name_)
virtual int operator() () const
 Returns iterator value, starting at min.

virtual bool next ()
 Increments iterator; returns false if iterator cannot be incremented.

virtual bool reset ()
 Resets iterator; returns false if iterator value range is empty.

virtual bool isValid () const
 Returns whether current value of iterator is valid.


Protected Member Functions

virtual ~RangeIterator ()
 Protected destructor to ensure creation on the heap.


Private Attributes

int min
 Minimum value.

int max
 Maximum value.

int index
 Current value.


Constructor & Destructor Documentation

RangeIterator::RangeIterator int  min_,
int  max_
[inline]
 

Constructor.

Parameters:
min_  Minimum value
max_  Maximum value

Definition at line 24 of file FillIterators.h.

References index, max, min, and NamedO::str().

RangeIterator::RangeIterator int  min_,
int  max_,
const std::string &  name_
[inline]
 

Parameters:
min_  Minimum value
max_  Maximum value
name_  The object's name

Definition at line 32 of file FillIterators.h.

References index, max, and min.


The documentation for this class was generated from the following file:
Generated on Thu Oct 26 12:55:03 2006 for SFH by doxygen 1.3.2