Evo C++ Library v0.5.1
|
#include <evo/enum.h>
Expanded EnumIterator used with enum traits.
T::Iter
T | Enum traits type to use |
Output:
Public Types | |
typedef EnumIterator< typename T::Type,(int) T::FIRST,(int) T::LAST > | BaseType |
typedef T | EnumType |
typedef EnumMapIterator< T > | This |
Public Member Functions | |
EnumMapIterator () | |
EnumMapIterator (const This &src) | |
EnumMapIterator (EnumType value) | |
EnumMapIterator (IteratorPos pos) | |
operator SafeBoolType () const | |
Safe (explicit) evaluation as bool type. More... | |
bool | operator! () const |
Check whether iterator is at end. More... | |
bool | operator!= (const This &oth) const |
Inequality operator to compare with another iterator to same enum. More... | |
EnumType | operator* () const |
Dereference iterator to get current enum value. More... | |
This & | operator++ () |
Pre increment operator, moves to next enum value or end. More... | |
This | operator++ (int) |
Post increment operator, moves to next enum value or end. More... | |
This & | operator-- () |
Pre decrement operator, moves to previous enum value or end. More... | |
This | operator-- (int) |
Post decrement operator, moves to previous enum value or end. More... | |
This & | operator= (const This &src) |
This & | operator= (EnumType value) |
This & | operator= (IteratorPos pos) |
bool | operator== (const This &oth) const |
Equality operator to compare with another iterator to same enum. More... | |
EnumType | value () const |
Get current enum value. More... | |
int | value_num (int endvalue=0) const |
Get current enum number value. More... | |
SubString | value_str () const |
Get current enum string value. More... | |
Static Public Attributes | |
static const T | FIRST |
static const T | LAST |
Protected Member Functions | |
void | next () |
void | prev () |
void | setpos (IteratorPos pos) |
Protected Attributes | |
bool | end_ |
EnumType | value_ |
typedef EnumIterator<typename T::Type, (int)T::FIRST, (int)T::LAST> BaseType |
typedef T EnumType |
typedef EnumMapIterator<T> This |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprotectedinherited |
|
inlineinherited |
Safe (explicit) evaluation as bool type.
|
inlineinherited |
Check whether iterator is at end.
Inequality operator to compare with another iterator to same enum.
oth | Other iterator to compare to |
|
inlineinherited |
Dereference iterator to get current enum value.
|
inlineinherited |
Pre increment operator, moves to next enum value or end.
|
inlineinherited |
Post increment operator, moves to next enum value or end.
|
inlineinherited |
Pre decrement operator, moves to previous enum value or end.
|
inlineinherited |
Post decrement operator, moves to previous enum value or end.
|
inline |
|
inlineinherited |
Equality operator to compare with another iterator to same enum.
oth | Other iterator to compare to |
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
inlineinherited |
Get current enum value.
|
inlineinherited |
Get current enum number value.
|
inline |
Get current enum string value.
|
protectedinherited |
|
staticinherited |
|
staticinherited |
|
protectedinherited |