IntRange Class Reference

Represents a range of numbers, with a lower and upper boundary. More...

#include <typen.h>

List of all members.

Public Member Functions

 IntRange ()
 IntRange (int oneValue)
 IntRange (int from_, int to_)
void read (tnstream &stream)
void write (tnstream &stream) const

Public Attributes

int from
 the lower boundary.
int to
 the upper boundary


Detailed Description

Represents a range of numbers, with a lower and upper boundary.

The boundaries themself are part of the range

Definition at line 333 of file typen.h.


Constructor & Destructor Documentation

IntRange::IntRange (  )  [inline]

Definition at line 340 of file typen.h.

IntRange::IntRange ( int  oneValue  )  [inline]

Definition at line 341 of file typen.h.

IntRange::IntRange ( int  from_,
int  to_ 
) [inline]

Definition at line 342 of file typen.h.


Member Function Documentation

void IntRange::read ( tnstream stream  ) 

Definition at line 339 of file typen.cpp.

References from, tnstream::readInt(), and to.

void IntRange::write ( tnstream stream  )  const

Definition at line 346 of file typen.cpp.

References from, to, and tnstream::writeInt().


Member Data Documentation

int IntRange::from

the lower boundary.

Definition at line 336 of file typen.h.

Referenced by SingleUnitSet::parseIDs(), SingleUnitSet::TranslationTable::parseString(), read(), and write().

int IntRange::to

the upper boundary

Definition at line 339 of file typen.h.

Referenced by SingleUnitSet::parseIDs(), SingleUnitSet::TranslationTable::parseString(), read(), and write().


The documentation for this class was generated from the following files:
Generated on Mon May 21 01:46:52 2012 for Advanced Strategic Command by  doxygen 1.5.1