21 template <
typename Enumeration, Enumeration end_element = Enumeration::Count>
48 assert (
value <= end_element);
57 assert (
value <= end_element);
86 return (
value < end_element);
enumeration_type operator*(void) const
Get the current value of the iterator.
Definition: enum.h:39
bool operator==(Iterator compare_to)
Compare two iterators.
Definition: enum.h:68
enumeration_type value
Definition: enum.h:27
Iterator()
Create a new iterator, starting at value 0.
Definition: enum.h:30
enumeration_type operator++(void)
Move to the successor item (prefix form).
Definition: enum.h:45
Iterator(enumeration_type initial_value)
Create a new iterator, starting at a specified value.
Definition: enum.h:33
bool operator!=(Iterator compare_to)
Compare two iterators.
Definition: enum.h:62
Iteratate over the values of the enumeration.
Definition: enum.h:22
Enumeration enumeration_type
Definition: enum.h:24
static Iterator begin()
Get a new iterator for the first item of the enumeration.
Definition: enum.h:75
static Iterator end()
Get a new iterator for the terminator item of the enumeration.
Definition: enum.h:80
static const Enumeration begin_element
Definition: enum.h:23
bool isValid(Enumeration value)
Definition: enum.h:85
uint32_t value
Definition: audiooutput.cpp:68