KDECore
#include <ktypetraits.h>
Public Types | |
| enum | { isSignedInt = KTypeListContains<SignedInts, T>::value } |
| enum | { isUnsignedInt = KTypeListContains<UnsignedInts, T>::value } |
| enum | { isInteger = isSignedInt || isUnsignedInt } |
| enum | { isFloat = KTypeListContains<Floats, T>::value } |
| enum | { isBoolean = STATIC_EQUAL(T, bool) } |
| enum | { isNumeric = isInteger || isFloat || isBoolean } |
| enum | { isFundamental = isPointer || isNumeric } |
| enum | { isQObject = IsParentOfChildNonStrict<QObject, T>::value } |
| enum | { isQWidget = IsParentOfChildNonStrict<QWidget, T>::value } |
| enum | { isTypeList = TypeListCheck<T>::value } |
| typedef Modifiers::ReferenceType< T >::Result | ReferenceType |
| typedef Modifiers::StripAll< T >::Result | StripAll |
Public Member Functions | |
| typedef | STATIC_IF (isFundamental||isReference, T, typename Modifiers::ReferenceType< const T >::Result) ParameterType |
Detailed Description
template<typename T>
class KTypeTraits::TypeTraits< T >
Definition at line 162 of file ktypetraits.h.
Member Typedef Documentation
◆ ReferenceType
| typedef Modifiers::ReferenceType<T>::Result KTypeTraits::TypeTraits< T >::ReferenceType |
Definition at line 245 of file ktypetraits.h.
◆ StripAll
| typedef Modifiers::StripAll<T>::Result KTypeTraits::TypeTraits< T >::StripAll |
Definition at line 248 of file ktypetraits.h.
Member Enumeration Documentation
◆ anonymous enum
| anonymous enum |
| Enumerator | |
|---|---|
| isSignedInt | |
Definition at line 236 of file ktypetraits.h.
◆ anonymous enum
| anonymous enum |
| Enumerator | |
|---|---|
| isUnsignedInt | |
Definition at line 237 of file ktypetraits.h.
◆ anonymous enum
| anonymous enum |
| Enumerator | |
|---|---|
| isInteger | |
Definition at line 238 of file ktypetraits.h.
◆ anonymous enum
| anonymous enum |
| Enumerator | |
|---|---|
| isFloat | |
Definition at line 239 of file ktypetraits.h.
◆ anonymous enum
| anonymous enum |
| Enumerator | |
|---|---|
| isBoolean | |
Definition at line 240 of file ktypetraits.h.
◆ anonymous enum
| anonymous enum |
| Enumerator | |
|---|---|
| isNumeric | |
Definition at line 241 of file ktypetraits.h.
◆ anonymous enum
| anonymous enum |
| Enumerator | |
|---|---|
| isFundamental | |
Definition at line 242 of file ktypetraits.h.
◆ anonymous enum
| anonymous enum |
| Enumerator | |
|---|---|
| isQObject | |
Definition at line 243 of file ktypetraits.h.
◆ anonymous enum
| anonymous enum |
| Enumerator | |
|---|---|
| isQWidget | |
Definition at line 244 of file ktypetraits.h.
◆ anonymous enum
| anonymous enum |
| Enumerator | |
|---|---|
| isTypeList | |
Definition at line 247 of file ktypetraits.h.
Member Function Documentation
◆ STATIC_IF()
| typedef KTypeTraits::TypeTraits< T >::STATIC_IF | ( | isFundamental|| | isReference, |
| T | , | ||
| typename Modifiers::ReferenceType< const T >::Result | |||
| ) |
The documentation for this class was generated from the following file:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat Jan 18 2020 18:58:57 by doxygen 1.8.15 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.