Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Templates/NonNullPointer.h |
Include |
#include "Templates/NonNullPointer.h" |
template<typename ObjectType>
class TNonNullPtr
TNonNullPtr is a non-nullable, non-owning, raw/naked/unsafe pointer.
Name | Description | |
---|---|---|
|
TNonNullPtr |
Hack that can be used under extraordinary circumstances |
|
TNonNullPtr |
Nullptr constructor - not allowed. |
|
TNonNullPtr ( |
Constructs a non-null pointer from the provided pointer. Must not be nullptr. |
|
TNonNullPtr ( |
Constructs a non-null pointer from another non-null pointer |
Name | Description | ||
---|---|---|---|
|
ObjectType &... |
Get() |
Returns the internal pointer |
Name | Description | ||
---|---|---|---|
|
operator ObjectType *() |
Returns the internal pointer |
|
|
ObjectType & |
operator*() |
Dereference operator returns a reference to the object this pointer points to |
|
TNonNullPtr ... |
operator= |
Assignment operator taking a nullptr - not allowed. |
|
TNonNullPtr ... |
operator= ( |
Assignment operator taking a pointer |
|
TNonNullPtr ... |
operator= ( |
Assignment operator taking another TNonNullPtr |
|
ObjectType &... |
operator->() |
Arrow operator returns a pointer to this pointer's object |