Syntalos::Flags
Syntalos::Flags
Type-safe bitfield wrapper for scoped enums. More…
#include <flags.h>
Public Functions
| Name | |
|---|---|
| constexpr | Flags() |
| constexpr | Flags(E flag) |
| constexpr | Flags(Int raw) |
| Flags | **[operator |
| Flags | operator&(Flags rhs) const |
| Flags | operator~() const |
| Flags & | **[operator |
| Flags & | operator&=(Flags rhs) |
| bool | operator==(Flags rhs) const |
| bool | operator!=(Flags rhs) const |
| constexpr | operator bool() const |
| bool | hasFlag(E flag) const |
| Flags & | setFlag(E flag, bool enabled =true) |
| Int | toInt() const |
Detailed Description
template <typename E >
class Syntalos::Flags;Type-safe bitfield wrapper for scoped enums.
Flags
Public Functions Documentation
function Flags
inline constexpr Flags()function Flags
inline constexpr Flags(
E flag
)function Flags
inline explicit constexpr Flags(
Int raw
)function operator|
inline Flags operator|(
Flags rhs
) constfunction operator&
inline Flags operator&(
Flags rhs
) constfunction operator~
inline Flags operator~() constfunction operator|=
inline Flags & operator|=(
Flags rhs
)function operator&=
inline Flags & operator&=(
Flags rhs
)function operator==
inline bool operator==(
Flags rhs
) constfunction operator!=
inline bool operator!=(
Flags rhs
) constfunction operator bool
inline explicit constexpr operator bool() constfunction hasFlag
inline bool hasFlag(
E flag
) constfunction setFlag
inline Flags & setFlag(
E flag,
bool enabled =true
)function toInt
inline Int toInt() constUpdated on 2026-11-30 at 23:52:31 +0000