![]() |
FastEngine 0.9.4
A multiplayer oriented 2D engine made with Vulkan.
|
A class to handle "flags" for an enum type. More...
#include <C_flag.hpp>
Public Types | |
using | Type = std::underlying_type_t<EnumType> |
Public Member Functions | |
constexpr | EnumFlags (Type value=Type{0}) |
EnumFlags & | set (Type flag) |
EnumFlags & | unset (Type flag) |
EnumFlags & | toggle (Type flag) |
constexpr bool | has (Type flag) const |
constexpr Type | get () const |
constexpr EnumFlags & | operator= (Type value) |
A class to handle "flags" for an enum type.
This class allows you to manage a set of flags for an enum type, where each flag is represented by a value of the enum. It provides methods to set, unset, toggle flags, check if a flag is set, and retrieve the current flags.
EnumType | The enum type for which flags are managed. |