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

TNonNullPtr is a non-nullable, non-owning, raw/naked/unsafe pointer. 更多...

#include <NonNullPointer.h>

Public 成员函数

FORCEINLINE ObjectType * Get () const
 Returns the internal pointer
 
FORCEINLINE operator ObjectType * () const
 Returns the internal pointer
 
FORCEINLINE ObjectType & operator* () const
 Dereference operator returns a reference to the object this pointer points to
 
FORCEINLINE ObjectType * operator-> () const
 Arrow operator returns a pointer to this pointer's object
 
template<typename OtherObjectType , typename = typename TEnableIf<TPointerIsConvertibleFromTo<OtherObjectType, ObjectType>::Value>::Type>
FORCEINLINE TNonNullPtr & operator= (OtherObjectType *InObject)
 Assignment operator taking a pointer
 
template<typename OtherObjectType , typename = typename TEnableIf<TPointerIsConvertibleFromTo<OtherObjectType, ObjectType>::Value>::Type>
FORCEINLINE TNonNullPtr & operator= (TNonNullPtr< OtherObjectType > &Other)
 Assignment operator taking another TNonNullPtr
 
FORCEINLINE TNonNullPtr & operator= (TYPE_OF_NULLPTR)
 Assignment operator taking a nullptr - not allowed.
 
FORCEINLINE TNonNullPtr (EDefaultConstruct)
 Hack that can be used under extraordinary circumstances
 
template<typename OtherObjectType , typename = typename TEnableIf<TPointerIsConvertibleFromTo<OtherObjectType, ObjectType>::Value>::Type>
FORCEINLINE TNonNullPtr (OtherObjectType *InObject)
 Constructs a non-null pointer from the provided pointer. 更多...
 
template<typename OtherObjectType , typename = typename TEnableIf<TPointerIsConvertibleFromTo<OtherObjectType, ObjectType>::Value>::Type>
FORCEINLINE TNonNullPtr (TNonNullPtr< OtherObjectType > &Other)
 Constructs a non-null pointer from another non-null pointer
 
FORCEINLINE TNonNullPtr (TYPE_OF_NULLPTR)
 nullptr constructor - not allowed.
 

详细描述

template<typename ObjectType>
class TNonNullPtr< ObjectType >

TNonNullPtr is a non-nullable, non-owning, raw/naked/unsafe pointer.

构造及析构函数说明

◆ TNonNullPtr()

template<typename ObjectType >
template<typename OtherObjectType , typename = typename TEnableIf<TPointerIsConvertibleFromTo<OtherObjectType, ObjectType>::Value>::Type>
FORCEINLINE TNonNullPtr< ObjectType >::TNonNullPtr ( OtherObjectType *  InObject)
inline

Constructs a non-null pointer from the provided pointer.

Must not be nullptr.


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