class
TBitFlags
- Module
- Core
- Header
#include "Core/TBitFlags.h"- Namespace
Mowo- Template
template<typename E, typename = std::enable_if_t<std::is_enum_v<E>>>
Type aliases
| Alias | Description |
|---|---|
using Underlying = std::underlying_type_t<E> |
Constructors
| Signature | Name | Description |
|---|---|---|
constexpr TBitFlags() = default | TBitFlags | |
constexpr TBitFlags(E single) : m_bits(static_cast<Underlying>(single)) | TBitFlags | |
explicit constexpr TBitFlags(Underlying raw) : m_bits(raw) | TBitFlags |
Public functions
| Returns | Name | Description |
|---|---|---|
TBitFlags& | Add | |
TBitFlags& | Remove | |
TBitFlags& | Toggle | |
TBitFlags& | Clear | |
TBitFlags& | Set | |
bool | Has | Has requires every bit of flag; HasAny requires one. |
bool | HasAny | |
bool | IsEmpty | |
Underlying | Raw | |
bool | operator== | |
bool | operator!= |
Function details
TBitFlags
C++
constexpr TBitFlags() = defaultTBitFlags
C++
constexpr TBitFlags(E single) : m_bits(static_cast<Underlying>(single))TBitFlags
C++
explicit constexpr TBitFlags(Underlying raw) : m_bits(raw)Add
C++
constexpr TBitFlags& Add(E flag) noexceptRemove
C++
constexpr TBitFlags& Remove(E flag) noexceptToggle
C++
constexpr TBitFlags& Toggle(E flag) noexceptClear
C++
constexpr TBitFlags& Clear() noexceptSet
C++
constexpr TBitFlags& Set(E flag, bool value) noexceptHas
C++
constexpr bool Has(E flag) const noexceptHas requires every bit of flag; HasAny requires one.
HasAny
C++
constexpr bool HasAny(E flag) const noexceptIsEmpty
C++
constexpr bool IsEmpty() const noexceptRaw
C++
constexpr Underlying Raw() const noexceptoperator==
C++
constexpr bool operator==(const TBitFlags& o) const noexceptoperator!=
C++
constexpr bool operator!=(const TBitFlags& o) const noexceptGenerated from Core/TBitFlags.h via core.json · Nov 5, 2026Version 1.0.0