#include <VaultedVulkan/VV_Backend.hpp>
template<typename EnumType, typename BitmaskRepresentation>
Bitfield class
Contents
A wrapper object for bitmasks that allows for typesafe bitmask operations.
Public types
- using Enum = EnumType
- using Representation = BitmaskRepresentation
Constructors, destructors, conversion operators
- Bitfield()
- Bitfield(Representation _mask)
-
template<typename... BitTypes>Bitfield(const BitTypes... _bits)
- operator Representation() const
Public functions
-
template<typename... BitType>void Add(const BitType... _bits)
-
template<typename... BitType>auto CheckForEither(const BitType... _bits) const -> bool
-
template<typename... BitType>void Clear(const BitType... _bits)
- auto HasFlag(const Enum _bit) const -> bool
-
template<typename... BitType>auto HasExactly(const BitType... _bits) const -> bool
- auto HasAnyFlag() const -> bool
- auto IsZero() const -> bool
- void Reset()
-
template<typename... BitType>void Set(const BitType... _bits)
-
template<typename... BitType>void Toggle(const BitType... _bits)
-
auto operator=(const Representation _mask) -> _
ThisType& -
auto operator=(const _
ThisType _other) -> _ ThisType& -
auto operator&=(const Representation _mask) -> _
ThisType& -
auto operator&=(const _
ThisType _other) -> _ ThisType& -
auto operator|=(const Representation _mask) -> _
ThisType& -
auto operator|=(const _
ThisType _other) -> _ ThisType& -
auto operator^=(const Representation _mask) -> _
ThisType& -
auto operator^=(const _
ThisType _other) -> _ ThisType& -
auto operator<<=(const Representation _mask) -> _
ThisType& -
auto operator>>=(const _
ThisType _other) -> _ ThisType& -
auto operator~() const -> _
ThisType - auto operator&(const Representation _other) const -> Representation
-
auto operator&(const _
ThisType _other) const -> _ ThisType - auto operator|(const Representation _other) const -> Representation
-
auto operator|(const _
ThisType _other) const -> _ ThisType - auto operator^(const Representation _other) const -> Representation
-
auto operator^(const _
ThisType _other) const -> _ ThisType - auto operator<<(const Representation _other) const -> Representation
-
auto operator>>(const _
ThisType _other) const -> _ ThisType - auto operator==(const Representation _other) const -> bool
-
auto operator==(const _
ThisType _other) const -> bool - auto operator!=(const Representation _other) const -> bool
-
auto operator!=(const _
ThisType _other) const -> bool