engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 友元 | 所有成员列表
TCheckedObjPtr< T > 模板类 参考

TCheckedObjPtr 更多...

#include <Archive.h>

Public 成员函数

FORCEINLINE T *& Get ()
 Retrieves a writable/serializable reference to the pointer 更多...
 
FORCEINLINE bool IsError () const
 Whether or not there was an error during the previous serialization. 更多...
 
FORCEINLINE bool IsValid () const
 Whether or not the pointer is valid/non-null 更多...
 
FORCEINLINE T * operator-> () const
 Returns the object pointer, for accessing members of the object 更多...
 
FORCEINLINE TCheckedObjPtr & operator= (T *InObject)
 Assigns a value to the object pointer 更多...
 

友元

class FArchive
 

详细描述

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)

成员函数说明

◆ Get()

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

Retrieves a writable/serializable reference to the pointer

返回
Returns a reference to the pointer

◆ 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)

返回
Whether or not there was an error

◆ IsValid()

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

Whether or not the pointer is valid/non-null

返回
Whether or not the pointer is valid

◆ operator->()

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

Returns the object pointer, for accessing members of the object

返回
Returns the object pointer

◆ operator=()

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

Assigns a value to the object pointer

参数
InObjectThe value to assign to the pointer

该类的文档由以下文件生成: