TCheckedObjPtr

[TCheckedObjPtr](API\Runtime\Core\Serialization\TCheckedObjPtr)

Choose your operating system:

Windows

macOS

Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Serialization/Archive.h

Include

#include "Serialization/Archive.h"

Syntax

template<class T>
class TCheckedObjPtr

Remarks

TCheckedObjPtr

Wrapper for UObject pointers, which checks that the base class is accurate, upon serializing (to prevent illegal casting)

Constructors

Name Description

Public function

TCheckedObjPtr()

Public function

TCheckedObjPtr

(
    T* InObject
)

Functions

Name Description

Public function

T *&

 

Get()

Retrieves a writable/serializable reference to the pointer

Public function Const

bool

 

IsError()

Whether or not there was an error during the previous serialization.

Public function Const

bool

 

IsValid()

Whether or not the pointer is valid/non-null

Operators

Name Description

Public function

TCheckedObjP...

 

operator=

(
    T* InObject
)

Assigns a value to the object pointer

Public function Const

T *

 

operator->()

Returns the object pointer, for accessing members of the object