Navigation
API > API/Runtime > API/Runtime/Core
Wrapper for UObject pointers, which checks that the base class is accurate, upon serializing (to prevent illegal casting)
| Name | TCheckedObjPtr |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/Serialization/Archive.h |
| Include Path | #include "Serialization/Archive.h" |
Syntax
template<class T>
class TCheckedObjPtr
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Serialization/Archive.h | |||
TCheckedObjPtr
(
T* InObject |
Serialization/Archive.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bError | bool | Whether or not there was an error upon serializing | Serialization/Archive.h | |
| Object | T * | The object pointer | Serialization/Archive.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
T *& Get() |
Retrieves a writable/serializable reference to the pointer | Serialization/Archive.h | |
bool IsError () |
Whether or not there was an error during the previous serialization. | Serialization/Archive.h | |
bool IsValid() |
Whether or not the pointer is valid/non-null | Serialization/Archive.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TCheckedObjPtr & operator=
(
T* InObject |
Assigns a value to the object pointer | Serialization/Archive.h | |
T * operator->() |
Returns the object pointer, for accessing members of the object | Serialization/Archive.h |