|
| constexpr | Flags (E flag) noexcept |
| | Constructs a Flags object from a value of the enum E.
|
| |
| constexpr | Flags (Type f) |
| | Constructs a Flags object from an instance of the underlying type of the enum E.
|
| |
|
constexpr | Flags () |
| | Constructs an uninitialized Flags object.
|
| |
| constexpr Flags | operator| (const Flags &f) const noexcept |
| | Or operator.
|
| |
| constexpr Flags | operator| (E flag) const noexcept |
| | Or operator.
|
| |
| constexpr Flags | operator& (const Flags &f) const noexcept |
| | And operator.
|
| |
| constexpr Flags | operator& (E flag) const noexcept |
| | And operator.
|
| |
| constexpr | operator bool () const noexcept |
| | Checks if this instance is initialized.
|
| |
| constexpr | operator Type () const noexcept |
| | Casts the instance to the underlying type of E.
|
| |
template<typename E>
class uvw::Flags< E >
Utility class to handle flags.
This class can be used to handle flags of a same enumeration type.
It is meant to be used as an argument for functions and member methods and as part of events.
Flags<E> objects can be easily or-ed and and-ed with other instances of the same type or with instances of the type E (that is, the actual flag type), thus converted to the underlying type when needed.
Definition at line 80 of file util.h.