vrecko
virtual reality framework
|
#include <Enumeration.h>
Public Member Functions | |
Enumeration (unsigned int valuesCount,...) | |
unsigned int | valuesCount () const |
bool | containsValue (tref value) const |
void | startIteration () |
bool | hasNextValue () const |
tref | nextValue () |
Public Member Functions inherited from vrecko::Range | |
bool | isInterval () const |
bool | isEnumeration () const |
Additional Inherited Members | |
Public Types inherited from vrecko::Range | |
enum | RangeType { RANGE_INTERVAL, RANGE_ENUMERATION } |
Protected Member Functions inherited from vrecko::Range | |
Range (RangeType rangeType) | |
Range (const Range &range) | |
Represents an immutable enumeration.
This class uses templates. Specialized classes are prepared for bool, int, long, float, double and string data types. No other specializations should be used. Specialized classes are listed below definition of this class.
tval | data type used for values storage |
tref | data type used for arguments and results passing |
|
inline |
Constructs an Enumeration object by adding all the values.
valuesCount | number of values supplied (should be >= 1) |
... | values to be inserted |
|
inline |
"Contains value" predicate.
value | value to be checked |
|
inline |
"Has next value" predicate.
You have to initialize the internal interator first by calling startIteration() before you call this method!
|
inline |
Returns current value and increments the iterator.
You have to initialize the internal interator first by calling startIteration() before you call this method!
|
inline |
Initializes the internal iterator.
|
inline |
Returns values count.