Advanced Strategic Command
Public Member Functions | Public Attributes | List of all members
IntRange Class Reference

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

#include <typen.h>

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. More...
 
int to
 the upper boundary More...
 

Detailed Description

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

The boundaries themself are part of the range

Definition at line 334 of file typen.h.

Constructor & Destructor Documentation

IntRange::IntRange ( )
inline

Definition at line 341 of file typen.h.

IntRange::IntRange ( int  oneValue)
inline

Definition at line 342 of file typen.h.

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

Definition at line 343 of file typen.h.

Member Function Documentation

void IntRange::read ( tnstream stream)

Definition at line 347 of file typen.cpp.

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

void IntRange::write ( tnstream stream) const

Definition at line 354 of file typen.cpp.

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

Member Data Documentation

int IntRange::from

the lower boundary.

Definition at line 337 of file typen.h.

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

int IntRange::to

the upper boundary

Definition at line 340 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: