Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
TIsDerivedFrom< DerivedType, BaseType > Struct Template Reference

#include <UnrealTypeTraits.h>

Public Types

typedef char No[1]
 
typedef char Yes[2]
 

Static Public Member Functions

static YesTest (BaseType *)
 
static YesTest (const BaseType *)
 
static NoTest (...)
 
static DerivedType * DerivedTypePtr ()
 

Static Public Attributes

static constexpr bool Value = sizeof(Test( DerivedTypePtr() )) == sizeof(Yes)
 
static constexpr bool IsDerived = Value
 

Detailed Description

template<typename DerivedType, typename BaseType>
struct TIsDerivedFrom< DerivedType, BaseType >

Is type DerivedType inherited from BaseType.

Definition at line 73 of file UnrealTypeTraits.h.

Member Typedef Documentation

◆ No

template<typename DerivedType , typename BaseType >
typedef char TIsDerivedFrom< DerivedType, BaseType >::No[1]

Definition at line 76 of file UnrealTypeTraits.h.

◆ Yes

template<typename DerivedType , typename BaseType >
typedef char TIsDerivedFrom< DerivedType, BaseType >::Yes[2]

Definition at line 77 of file UnrealTypeTraits.h.

Member Function Documentation

◆ DerivedTypePtr()

template<typename DerivedType , typename BaseType >
static DerivedType * TIsDerivedFrom< DerivedType, BaseType >::DerivedTypePtr ( )
inlinestatic

Definition at line 86 of file UnrealTypeTraits.h.

◆ Test() [1/3]

template<typename DerivedType , typename BaseType >
static No & TIsDerivedFrom< DerivedType, BaseType >::Test ( ...)
static

◆ Test() [2/3]

template<typename DerivedType , typename BaseType >
static Yes & TIsDerivedFrom< DerivedType, BaseType >::Test ( BaseType * )
static

◆ Test() [3/3]

template<typename DerivedType , typename BaseType >
static Yes & TIsDerivedFrom< DerivedType, BaseType >::Test ( const BaseType * )
static

Member Data Documentation

◆ IsDerived

template<typename DerivedType , typename BaseType >
constexpr bool TIsDerivedFrom< DerivedType, BaseType >::IsDerived = Value
staticconstexpr

Definition at line 93 of file UnrealTypeTraits.h.

◆ Value

template<typename DerivedType , typename BaseType >
constexpr bool TIsDerivedFrom< DerivedType, BaseType >::Value = sizeof(Test( DerivedTypePtr() )) == sizeof(Yes)
staticconstexpr

Definition at line 91 of file UnrealTypeTraits.h.


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