|
CeresEngine 0.2.0
A game development framework
|
Wrapper around an enum that allows simple use of bitwise logic operations. More...
#include <CeresEngine/Foundation/Flags.hpp>
Public Attributes | |
| Storage | raw = 0 |
Friends | |
| constexpr Flags | operator& (Enum a, Flags &b) noexcept |
Wrapper around an enum that allows simple use of bitwise logic operations.
|
constexprdefaultnoexcept |
|
inlineconstexprnoexcept |
Creates a new Flags object from the given enum value.
| value | The enum value |
|
inlineconstexprnoexcept |
Creates a new Flags object from a list of values.
| values | The list of values to create from |
|
inlineconstexprnoexcept |
|
inlineexplicitconstexprnoexcept |
|
inlineconstexprnoexcept |
Checks whether all of the provided bits are set.
|
inlineconstexprnoexcept |
Checks whether all of the provided bits are set.
|
inlineconstexprnoexcept |
Checks whether any of the provided bits are set.
|
inlineconstexprnoexcept |
Checks whether any of the provided bits are set.
|
inlineexplicitconstexprnoexcept |
|
inlineexplicitconstexprnoexcept |
|
inlineexplicitconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
Activates all of the provided bits.
|
inlineconstexprnoexcept |
Activates or deactives all of the provided bits.
|
inlineconstexprnoexcept |
Sets a set of bits only if any of it's bits were previously unset.
| value | The bits to be set |
true if any of the bits in value were previously unset.
|
inlineconstexprnoexcept |
Deactivates all of the provided bits.
Deactivates all of the provided bits.
|
inlineconstexprnoexcept |
Unsets a set of bits only if any of it's bits were previously set.
| value | The bits to be unset |
true if any of the bits in value were previously set. | Storage CeresEngine::Flags< Enum, Storage >::raw = 0 |