KDGpu::Flags
More...
#include <flags.h>
Public Types
|
Name |
using typename std::underlying_type< E >::type |
FlagsInt |
using E |
Enum |
Public Functions
Friends
Detailed Description
| template <typename E >
class KDGpu::Flags;
|
Public Types Documentation
using FlagsInt
| using KDGpu::Flags< E >::FlagsInt = typename std::underlying_type<E>::type;
|
using Enum
| using KDGpu::Flags< E >::Enum = E;
|
Public Functions Documentation
function Flags
| inline constexpr Flags() =default
|
function Flags
| inline constexpr Flags(
E flag
)
|
function operator bool
| inline explicit constexpr operator bool() const
|
function toInt
| inline FlagsInt toInt() const
|
function operator&=
| inline Flags & operator&=(
E mask
)
|
function operator&=
| inline Flags & operator&=(
Flags flags
)
|
function operator|=
| inline Flags & operator|=(
E mask
)
|
function operator|=
| inline Flags & operator|=(
Flags flags
)
|
function operator^=
| inline Flags & operator^=(
E mask
)
|
function operator^=
| inline Flags & operator^=(
Flags flags
)
|
function operator&
| inline Flags operator&(
E mask
) const
|
function operator&
| inline Flags operator&(
Flags flags
) const
|
function operator|
| inline Flags operator|(
E mask
) const
|
function operator|
| inline Flags operator|(
Flags flags
) const
|
function operator^
| inline Flags operator^(
E mask
) const
|
function operator^
| inline Flags operator^(
Flags flags
) const
|
function operator~
| inline Flags operator~() const
|
function testFlag
| inline bool testFlag(
E flag
) const
|
function setFlag
| inline Flags & setFlag(
E flag,
bool enabled =true
)
|
function operator+
| inline void operator+(
Flags
) const =delete
|
function operator+
| inline void operator+(
E
) const =delete
|
function operator+
| inline void operator+(
int
) const =delete
|
function operator+
| inline void operator+(
unsigned int
) const =delete
|
function operator-
| inline void operator-(
Flags
) const =delete
|
function operator-
| inline void operator-(
E
) const =delete
|
function operator-
| inline void operator-(
int
) const =delete
|
function operator-
| inline void operator-(
unsigned int
) const =delete
|
function fromInt
| static inline Flags fromInt(
FlagsInt i
)
|
Friends
friend operator==
| friend bool operator==(
Flags l,
Flags r
);
|
friend operator==
| friend bool operator==(
Flags l,
E r
);
|
friend operator==
| friend bool operator==(
E l,
Flags r
);
|
friend operator!=
| friend bool operator!=(
Flags l,
Flags r
);
|
friend operator!=
| friend bool operator!=(
Flags l,
E r
);
|
friend operator!=
| friend bool operator!=(
E l,
Flags r
);
|
Updated on 2024-12-22 at 00:08:03 +0000