20 #ifndef EXPENUMERATOR_H_
21 #define EXPENUMERATOR_H_
26 namespace rule_engine {
bool canCountUp()
Returns true, iff the internal number has not reached its maximal value.
Definition: ExpEnumerator.cpp:44
ExpEnumerator(std::size_t base=0, std::size_t exponent=0)
Generates an new ExpEnumerator with the given base and exponent.
Definition: ExpEnumerator.cpp:27
virtual ~ExpEnumerator()
Destroys the current instance of ExpEnumerator.
Definition: ExpEnumerator.cpp:34
std::size_t base
The base of the internal number.
Definition: ExpEnumerator.h:95
std::size_t & operator[](std::size_t &index)
Returns the value of the number at the given position.
Definition: ExpEnumerator.cpp:68
std::size_t * data
An array storing the internal number.
Definition: ExpEnumerator.h:90
std::size_t dataSize
The length of the array storing the internal number.
Definition: ExpEnumerator.h:85
void operator++()
Increments the internal number by one.
Definition: ExpEnumerator.cpp:53
This class represents a number over a variable base with a fixed length.
Definition: ExpEnumerator.h:34
std::size_t size()
Returns the maximal length of the internal number.
Definition: ExpEnumerator.cpp:64
void initialize()
Sets the internal number to 0 (the minimal value).
Definition: ExpEnumerator.cpp:38