sequence Class Reference

Generate a sequence of integers. More...

#include <sequence.hpp>

List of all members.

Public Member Functions

 sequence (int start=0, int step=1)
int operator() ()
 Return the current value in the sequence, and increment the value.


Detailed Description

Generate a sequence of integers.

Listing 40-8. The sequence.hpp file

Definition at line 7 of file sequence.hpp.


Constructor & Destructor Documentation

sequence::sequence ( int  start = 0,
int  step = 1 
) [inline]

Construct the functor.

Parameters:
start the first value the generator returns
step increment the value by this much for each call

Definition at line 13 of file sequence.hpp.


The documentation for this class was generated from the following file:
Generated on Sun Nov 30 09:53:23 2008 for Exploring C++ - Final Forms of Key Examples by  doxygen 1.5.3