Orxonox
0.0.5 Codename: Arcturus
|
Lightweight enumeration class that can be extended at run time. More...
#include </home/jenkins/workspace/orxonox_doxygen_trunk/src/libraries/util/OrxEnum.h>
Public Member Functions | |
constexpr | OrxEnum () |
constexpr | OrxEnum (int type) |
constexpr | OrxEnum (const T &instance) |
constexpr | OrxEnum (const OrxEnum &instance)=delete |
constexpr | operator int () const |
constexpr bool | operator< (const T &right) const |
T & | operator= (int type) |
constexpr bool | operator> (const T &right) const |
Private Attributes | |
int | type_ |
Lightweight enumeration class that can be extended at run time.
The class accepts type int and also defines operator int(). Therefore int and OrxEnum can be used interchangeably so you can extend the content of the enumeration at run time by adding ints.
|
inline |
|
inline |
|
inline |
|
delete |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |