Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QtPrivate::IsPointerToTypeDerivedFromQObject< T * > Struct Template Reference

#include <qmetatype.h>

+ Inheritance diagram for QtPrivate::IsPointerToTypeDerivedFromQObject< T * >:
+ Collaboration diagram for QtPrivate::IsPointerToTypeDerivedFromQObject< T * >:

Public Types

enum  { Value = sizeof(checkType(static_cast<T*>(nullptr))) == sizeof(yes_type) }
 
typedef qint8 yes_type
 
typedef qint64 no_type
 

Static Public Member Functions

static yes_type checkType (QObject *)
 
static yes_type checkType (const QObject *)
 
static no_type checkType (...)
 

Detailed Description

template<typename T>
struct QtPrivate::IsPointerToTypeDerivedFromQObject< T * >

Definition at line 928 of file qmetatype.h.

Member Typedef Documentation

◆ no_type

template<typename T >
typedef qint64 QtPrivate::IsPointerToTypeDerivedFromQObject< T * >::no_type

Definition at line 931 of file qmetatype.h.

◆ yes_type

template<typename T >
typedef qint8 QtPrivate::IsPointerToTypeDerivedFromQObject< T * >::yes_type

Definition at line 930 of file qmetatype.h.

Member Enumeration Documentation

◆ anonymous enum

template<typename T >
anonymous enum
Enumerator
Value 

Definition at line 938 of file qmetatype.h.

Member Function Documentation

◆ checkType() [1/3]

template<typename T >
static no_type QtPrivate::IsPointerToTypeDerivedFromQObject< T * >::checkType ( ...)
static

◆ checkType() [2/3]

template<typename T >
static yes_type QtPrivate::IsPointerToTypeDerivedFromQObject< T * >::checkType ( const QObject * )
static

◆ checkType() [3/3]

template<typename T >
static yes_type QtPrivate::IsPointerToTypeDerivedFromQObject< T * >::checkType ( QObject * )
static

The documentation for this struct was generated from the following file: