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