Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
TCheckedObjPtr< T > Class Template Reference

#include <Archive.h>

Public Member Functions

 TCheckedObjPtr ()
 
 TCheckedObjPtr (T *InObject)
 
FORCEINLINE TCheckedObjPtroperator= (T *InObject)
 
FORCEINLINE Toperator-> () const
 
FORCEINLINE T *& Get ()
 
FORCEINLINE bool IsValid () const
 
FORCEINLINE bool IsError () const
 

Private Attributes

TObject
 
bool bError
 

Friends

class FArchive
 

Detailed Description

template<class T>
class TCheckedObjPtr< T >

TCheckedObjPtr

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

Definition at line 1040 of file Archive.h.

Constructor & Destructor Documentation

◆ TCheckedObjPtr() [1/2]

template<class T >
TCheckedObjPtr< T >::TCheckedObjPtr ( )
inline

Definition at line 1045 of file Archive.h.

◆ TCheckedObjPtr() [2/2]

template<class T >
TCheckedObjPtr< T >::TCheckedObjPtr ( T * InObject)
inline

Definition at line 1051 of file Archive.h.

Member Function Documentation

◆ Get()

template<class T >
FORCEINLINE T *& TCheckedObjPtr< T >::Get ( )
inline

Retrieves a writable/serializable reference to the pointer

Returns
Returns a reference to the pointer

Definition at line 1084 of file Archive.h.

◆ IsError()

template<class T >
FORCEINLINE bool TCheckedObjPtr< T >::IsError ( ) const
inline

Whether or not there was an error during the previous serialization. This occurs if an object was successfully serialized, but with the wrong base class (which net serialization may have to recover from, if there was supposed to be data serialized along with the object)

Returns
Whether or not there was an error

Definition at line 1106 of file Archive.h.

◆ IsValid()

template<class T >
FORCEINLINE bool TCheckedObjPtr< T >::IsValid ( ) const
inline

Whether or not the pointer is valid/non-null

Returns
Whether or not the pointer is valid

Definition at line 1094 of file Archive.h.

◆ operator->()

template<class T >
FORCEINLINE T * TCheckedObjPtr< T >::operator-> ( ) const
inline

Returns the object pointer, for accessing members of the object

Returns
Returns the object pointer

Definition at line 1074 of file Archive.h.

◆ operator=()

template<class T >
FORCEINLINE TCheckedObjPtr & TCheckedObjPtr< T >::operator= ( T * InObject)
inline

Assigns a value to the object pointer

Parameters
InObjectThe value to assign to the pointer

Definition at line 1062 of file Archive.h.

Friends And Related Symbol Documentation

◆ FArchive

template<class T >
friend class FArchive
friend

Definition at line 1042 of file Archive.h.

Member Data Documentation

◆ bError

template<class T >
bool TCheckedObjPtr< T >::bError
private

Whether or not there was an error upon serializing

Definition at line 1116 of file Archive.h.

◆ Object

template<class T >
T* TCheckedObjPtr< T >::Object
private

The object pointer

Definition at line 1113 of file Archive.h.


The documentation for this class was generated from the following file: