Navigation
API > API/Runtime > API/Runtime/CoreUObject
Template to allow TClassType's to be passed around with type safety
| Name | TNonNullSubclassOf |
| Type | class |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/Templates/NonNullSubclassOf.h |
| Include Path | #include "Templates/NonNullSubclassOf.h" |
Syntax
template<typename T>
class TNonNullSubclassOf : public TSubclassOf< T >
Inheritance Hierarchy
- TSubclassOf → TNonNullSubclassOf
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Default Constructor, defaults to null | Templates/NonNullSubclassOf.h | ||
TNonNullSubclassOf
(
PtrType* From |
Constructor that takes a UClass* or FFieldClass* if T is a UObject or a FField type respectively. | Templates/NonNullSubclassOf.h | |
TNonNullSubclassOf
(
const TSubclassOf< U >& From |
Copy Constructor, will only compile if types are compatible | Templates/NonNullSubclassOf.h | |
| Templates/NonNullSubclassOf.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| IntrusiveUnsetOptionalStateType | TNonNullSubclassOf | Templates/NonNullSubclassOf.h | |
| Super | TSubclassOf< T > | Templates/NonNullSubclassOf.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| bHasIntrusiveUnsetOptionalState | bool | Start - intrusive TOptional |
Templates/NonNullSubclassOf.h |
Functions
Public
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TNonNullSubclassOf & operator=
(
const TSubclassOf< U >& From |
Assignment operator, will only compile if types are compatible | Templates/NonNullSubclassOf.h | |
TNonNullSubclassOf & operator=
(
PtrType* From |
Assignment operator from UClass, the type is checked on get not on set | Templates/NonNullSubclassOf.h | |
bool operator==
(
FIntrusiveUnsetOptionalState |
Templates/NonNullSubclassOf.h |