Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qflags.h>
Public Types | |
typedef Enum | enum_type |
using | Int = typename Base::Int |
Public Member Functions | |
constexpr | QFlags () noexcept=default |
constexpr Q_IMPLICIT | QFlags (Enum flags) 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 |
Public Member Functions inherited from QtPrivate::QFlagsStorage< Enum > | |
constexpr | QFlagsStorage () noexcept=default |
constexpr | QFlagsStorage (std::in_place_t, Int v) |
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 |
template<typename E > | |
QDataStream & | operator<< (QDataStream &, QFlags< E >) |
template<typename E > | |
QDataStream & | operator>> (QDataStream &, QFlags< E > &) |
Additional Inherited Members | |
Protected Types inherited from QtPrivate::QFlagsStorage< Enum > | |
typedef std::conditional< std::is_unsigned< typenamestd::underlying_type< Enum >::type >::value, typenameIntegers::Unsigned, typenameIntegers::Signed >::type | Int |
Protected Attributes inherited from QtPrivate::QFlagsStorage< Enum > | |
Int | i = 0 |
Definition at line 113 of file qflags.h.
Referenced by QFlags< Enum >::fromInt(), QFlags< Enum >::operator Int(), QFlags< Enum >::operator!(), QFlags< Enum >::operator&(), 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 >::setFlag().
|
inlineconstexprnoexcept |
Definition at line 121 of file qflags.h.
References QFlags< Enum >::QFlags().
Referenced by QFlags< Enum >::QFlags().
|
inlinestaticconstexprnoexcept |
Definition at line 124 of file qflags.h.
References QFlags< Enum >::QFlags().
|
inlineconstexprnoexcept |
Definition at line 142 of file qflags.h.
References QFlags< Enum >::QFlags().
Definition at line 143 of file qflags.h.
References QFlags< Enum >::QFlags().
|
inlineconstexprnoexcept |
Definition at line 155 of file qflags.h.
References QFlags< Enum >::QFlags().
Definition at line 151 of file qflags.h.
References QFlags< Enum >::QFlags().
|
inlineconstexprnoexcept |
Definition at line 154 of file qflags.h.
References QFlags< Enum >::QFlags().
|
inlineconstexprnoexcept |
Definition at line 152 of file qflags.h.
References QFlags< Enum >::QFlags().
|
inlineconstexprdeletenoexcept |
|
inlineconstexprdeletenoexcept |
|
inlineconstexprdeletenoexcept |
|
inlineconstexprdeletenoexcept |
|
inlineconstexprdeletenoexcept |
|
inlineconstexprdeletenoexcept |
|
inlineconstexprnoexcept |
Definition at line 149 of file qflags.h.
References QFlags< Enum >::QFlags().
|
inlineconstexprnoexcept |
Definition at line 148 of file qflags.h.
References QFlags< Enum >::QFlags().
|
inlineconstexprnoexcept |
Definition at line 147 of file qflags.h.
References QFlags< Enum >::QFlags().
|
inlineconstexprnoexcept |
Definition at line 146 of file qflags.h.
References QFlags< Enum >::QFlags().
Definition at line 156 of file qflags.h.
References QFlags< Enum >::QFlags().
|
inlineconstexprnoexcept |
Definition at line 169 of file qflags.h.
References QFlags< Enum >::QFlags().
|
inlineconstexprnoexcept |
Definition at line 167 of file qflags.h.
References QFlags< Enum >::testAnyFlags().
|
inlineconstexprnoexcept |
Definition at line 168 of file qflags.h.
Referenced by QFlags< Enum >::testAnyFlag().
Definition at line 165 of file qflags.h.
References QFlags< Enum >::testFlags().
|
inlineconstexprnoexcept |
Definition at line 166 of file qflags.h.
Referenced by QFlags< Enum >::testFlag().
|
friend |
|
friend |