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. | |
TNonNullPtr is a non-nullable, non-owning, raw/naked/unsafe pointer.
|
inline |
Constructs a non-null pointer from the provided pointer.
Must not be nullptr.