Template Class SafeEnum

Class Documentation

template<class ENUM, class UNDERLYING = typename std::underlying_type<ENUM>::type>
class SafeEnum

Public Functions

inline SafeEnum()
inline explicit SafeEnum(ENUM singleFlag)
inline SafeEnum(const SafeEnum &original)
~SafeEnum() = default
SafeEnum &operator=(const SafeEnum &original) = default
inline SafeEnum &operator|=(ENUM addValue)
inline SafeEnum operator|(ENUM addValue)
inline SafeEnum &operator&=(ENUM maskValue)
inline SafeEnum operator&(ENUM maskValue)
inline SafeEnum operator~()
inline explicit operator bool()

Protected Attributes

UNDERLYING mFlags