|
Elm
2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
21 #ifndef ELM_ENUM_INFO_H_
22 #define ELM_ENUM_INFO_H_
24 #include <elm/io/IOException.h>
25 #include <elm/type_info.h>
58 {
return vs == it.vs && (i == it.i || (it.i < 0 && !vs[i].
name) || (i < 0 && !vs[it.i].
name)); }
bool operator==(const iterator &it) const
Definition: enum_info.h:57
struct elm::enum_info::value_t value_t
Definition: enum_info.h:30
cstring name
Definition: enum_info.h:33
static iterator begin(void)
Definition: enum_info.h:67
T value
Definition: enum_info.h:34
static value_t last(void)
Definition: enum_info.h:42
@ is_defined_enum
Definition: enum_info.h:36
static cstring name(void)
Definition: enum_info.h:31
static T fromString(const string &name)
Definition: enum_info.h:47
T value(void) const
Definition: enum_info.h:61
static iterator end(void)
Definition: enum_info.h:68
iterator & operator++(int)
Definition: enum_info.h:56
cstring name(void) const
Definition: enum_info.h:60
Definition: type_info.h:106
Definition: enum_info.h:51
bool operator!=(const iterator &it) const
Definition: enum_info.h:59
value_t(cstring n, const T &v)
Definition: enum_info.h:32
Definition: IOException.h:29
static value_t values[]
Definition: enum_info.h:37
static cstring toString(T v)
Definition: enum_info.h:45
iterator & operator++(void)
Definition: enum_info.h:55
iterator(const iterator &it)
Definition: enum_info.h:54
static value_t value(const char *n, T v)
Definition: enum_info.h:41