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

CCM::DoubleIterator Class Reference

List of all members.

Detailed Description

Iterator that loops over a range of doubles.


Public Member Functions

 DoubleIterator (double start, double end, double step)
 Create iterator with the given boundaries and step.

 DoubleIterator (Attribute attr)
 Create iterator from a Range(min,max[,step]) attribute.

void Reset ()
bool MoveNext ()
override string ToString ()

Properties

Object Current
double start
double end
double step
double v
bool reset

Static Private Member Functions

double getBound (Object b)
 Return double boundary described by b.


Constructor & Destructor Documentation

CCM::DoubleIterator::DoubleIterator double  start,
double  end,
double  step
 

Create iterator with the given boundaries and step.

CCM::DoubleIterator::DoubleIterator Attribute  attr  ) 
 

Create iterator from a Range(min,max[,step]) attribute.

If attr is null, it defaults to IntIterator( -1.0, 1.0, 0.5 ). If step is not given, it defaults to 0.5.


Member Function Documentation

double CCM::DoubleIterator::getBound Object  b  )  [static, private]
 

Return double boundary described by b.

If b is a double, returns it; if b is a string, it is interpreted as class field and its value is returned.

bool CCM::DoubleIterator::MoveNext  ) 
 

void CCM::DoubleIterator::Reset  ) 
 

override string CCM::DoubleIterator::ToString  ) 
 


Property Documentation

Object CCM::DoubleIterator::Current [get]
 

double CCM::DoubleIterator::end [private]
 

bool CCM::DoubleIterator::reset [private]
 

double CCM::DoubleIterator::start [private]
 

double CCM::DoubleIterator::step [private]
 

double CCM::DoubleIterator::v [private]
 


The documentation for this class was generated from the following file:
Generated on Mon Jun 21 01:20:50 2004 for cs2ccmb by doxygen 1.3.7