TCheckedObjPtr

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

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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss