SPH
|
Wrapper of an enum. More...
#include <Settings.h>
Public Member Functions | |
EnumWrapper ()=default | |
template<typename TEnum > | |
EnumWrapper (TEnum e) | |
EnumWrapper (const int value, const EnumIndex &index) | |
operator int () const | |
template<typename T , typename = std::enable_if_t<std::is_enum<T>::value>> | |
operator T () const | |
bool | operator== (const EnumWrapper &other) const |
Public Attributes | |
int | value |
EnumIndex | index |
Friends | |
std::ostream & | operator<< (std::ostream &ofs, const EnumWrapper &e) |
Wrapper of an enum.
Used to store an enum in settings while keeping the type safety.
Definition at line 37 of file Settings.h.
|
default |
|
inlineexplicit |
Definition at line 45 of file Settings.h.
|
inline |
Definition at line 51 of file Settings.h.
|
inlineexplicit |
Definition at line 55 of file Settings.h.
|
inlineexplicit |
Definition at line 60 of file Settings.h.
|
inline |
Definition at line 65 of file Settings.h.
|
friend |
Definition at line 69 of file Settings.h.
EnumIndex EnumWrapper::index |
Definition at line 40 of file Settings.h.
int EnumWrapper::value |
Definition at line 38 of file Settings.h.