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

CCM::IntIterator Class Reference

List of all members.

Detailed Description

Iterator that loops over a range of integers.


Public Member Functions

 IntIterator (int start, int end, int step)
 Create iterator with the given boundaries and step.

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

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

Properties

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

Static Private Member Functions

int getBound (Object b)
 Return integer boundary described by b.


Constructor & Destructor Documentation

CCM::IntIterator::IntIterator int  start,
int  end,
int  step
 

Create iterator with the given boundaries and step.

CCM::IntIterator::IntIterator Attribute  attr  ) 
 

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

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


Member Function Documentation

int CCM::IntIterator::getBound Object  b  )  [static, private]
 

Return integer boundary described by b.

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

bool CCM::IntIterator::MoveNext  ) 
 

void CCM::IntIterator::Reset  ) 
 

override string CCM::IntIterator::ToString  ) 
 


Property Documentation

Object CCM::IntIterator::Current [get]
 

int CCM::IntIterator::end [private]
 

bool CCM::IntIterator::reset [private]
 

int CCM::IntIterator::start [private]
 

int CCM::IntIterator::step [private]
 

int CCM::IntIterator::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