![]() |
Qt 6.x
The Qt SDK
|
#include <qflags.h>
Public Types | |
typedef std::conditional< std::is_unsigned< typenamestd::underlying_type< Enum >::type >::value, unsignedint, signedint >::type | Int |
typedef Enum | enum_type |
Public Member Functions | |
constexpr | QFlags () noexcept |
constexpr Q_IMPLICIT | QFlags (Enum flags) noexcept |
constexpr Q_IMPLICIT | QFlags (QFlag flag) noexcept |
constexpr | QFlags (std::initializer_list< Enum > flags) noexcept |
constexpr Int | toInt () const noexcept |
constexpr QFlags & | operator&= (int mask) noexcept |
constexpr QFlags & | operator&= (uint mask) noexcept |
constexpr QFlags & | operator&= (QFlags mask) noexcept |
constexpr QFlags & | operator&= (Enum mask) noexcept |
constexpr QFlags & | operator|= (QFlags other) noexcept |
constexpr QFlags & | operator|= (Enum other) noexcept |
constexpr QFlags & | operator^= (QFlags other) noexcept |
constexpr QFlags & | operator^= (Enum other) noexcept |
constexpr Q_IMPLICIT | operator Int () const noexcept |
constexpr bool | operator! () const noexcept |
constexpr QFlags | operator| (QFlags other) const noexcept |
constexpr QFlags | operator| (Enum other) const noexcept |
constexpr QFlags | operator^ (QFlags other) const noexcept |
constexpr QFlags | operator^ (Enum other) const noexcept |
constexpr QFlags | operator& (int mask) const noexcept |
constexpr QFlags | operator& (uint mask) const noexcept |
constexpr QFlags | operator& (QFlags other) const noexcept |
constexpr QFlags | operator& (Enum other) const noexcept |
constexpr QFlags | operator~ () const noexcept |
constexpr void | operator+ (QFlags other) const noexcept=delete |
constexpr void | operator+ (Enum other) const noexcept=delete |
constexpr void | operator+ (int other) const noexcept=delete |
constexpr void | operator- (QFlags other) const noexcept=delete |
constexpr void | operator- (Enum other) const noexcept=delete |
constexpr void | operator- (int other) const noexcept=delete |
constexpr bool | testFlag (Enum flag) const noexcept |
constexpr bool | testFlags (QFlags flags) const noexcept |
constexpr bool | testAnyFlag (Enum flag) const noexcept |
constexpr bool | testAnyFlags (QFlags flags) const noexcept |
constexpr QFlags & | setFlag (Enum flag, bool on=true) noexcept |
Static Public Member Functions | |
static constexpr QFlags | fromInt (Int i) noexcept |
Friends | |
constexpr bool | operator== (QFlags lhs, QFlags rhs) noexcept |
constexpr bool | operator!= (QFlags lhs, QFlags rhs) noexcept |
constexpr bool | operator== (QFlags lhs, Enum rhs) noexcept |
constexpr bool | operator!= (QFlags lhs, Enum rhs) noexcept |
constexpr bool | operator== (Enum lhs, QFlags rhs) noexcept |
constexpr bool | operator!= (Enum lhs, QFlags rhs) noexcept |
typedef Enum QFlags< Enum >::enum_type |
Definition at line 73 of file qflags.h.
Referenced by QFlags< Enum >::fromInt(), QFlags< Enum >::operator&(), QFlags< Enum >::operator&(), QFlags< Enum >::operator&(), QFlags< Enum >::operator&(), QFlags< Enum >::operator^(), QFlags< Enum >::operator^(), QFlags< Enum >::operator|(), QFlags< Enum >::operator|(), and QFlags< Enum >::operator~().
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlinestaticconstexprnoexcept |
Definition at line 80 of file qflags.h.
References QFlags< Enum >::QFlags(), and i.
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
Definition at line 116 of file qflags.h.
References QFlags< Enum >::QFlags(), i, and other().
|
inlineconstexprnoexcept |
Definition at line 112 of file qflags.h.
References QFlags< Enum >::QFlags(), and i.
|
inlineconstexprnoexcept |
Definition at line 115 of file qflags.h.
References QFlags< Enum >::QFlags(), i, and other().
|
inlineconstexprnoexcept |
Definition at line 113 of file qflags.h.
References QFlags< Enum >::QFlags(), and i.
|
inlineconstexprdeletenoexcept |
|
inlineconstexprdeletenoexcept |
|
inlineconstexprdeletenoexcept |
|
inlineconstexprdeletenoexcept |
|
inlineconstexprdeletenoexcept |
|
inlineconstexprdeletenoexcept |
|
inlineconstexprnoexcept |
Definition at line 110 of file qflags.h.
References QFlags< Enum >::QFlags(), i, and other().
|
inlineconstexprnoexcept |
Definition at line 109 of file qflags.h.
References QFlags< Enum >::QFlags(), i, and other().
|
inlineconstexprnoexcept |
Definition at line 108 of file qflags.h.
References QFlags< Enum >::QFlags(), i, and other().
|
inlineconstexprnoexcept |
Definition at line 107 of file qflags.h.
References QFlags< Enum >::QFlags(), i, and other().
|
inlineconstexprnoexcept |
Definition at line 117 of file qflags.h.
References QFlags< Enum >::QFlags(), and i.
|
inlineconstexprnoexcept |
Definition at line 128 of file qflags.h.
References QFlags< Enum >::testAnyFlags().
|
inlineconstexprnoexcept |
Definition at line 129 of file qflags.h.
References i.
Referenced by QFlags< Enum >::testAnyFlag().
|
inlineconstexprnoexcept |
Definition at line 126 of file qflags.h.
References QFlags< Enum >::testFlags().
Referenced by RenderHelpers::rhiPrepareRenderable().
|
inlineconstexprnoexcept |
Definition at line 127 of file qflags.h.
References i.
Referenced by QFlags< Enum >::testFlag().
|
friend |
|
friend |