Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Templates/SharedPointer.h |
Include |
#include "Templates/SharedPointer.h" |
template<class ObjectType, ESPMode InMode>
class TSharedPtr
TSharedPtr is a non-intrusive reference-counted authoritative object pointer. This shared pointer will be conditionally thread-safe when the optional Mode template argument is set to ThreadSafe.
Name | Description | |
---|---|---|
|
TSharedPtr ( |
NOTE: FNullTag parameter is an Unreal extension to standard shared_ptr behavior. |
|
TSharedPtr ( |
Constructs a shared pointer that owns the specified object. |
|
TSharedPtr ( |
Special constructor used internally to statically cast one shared pointer type to another. |
|
TSharedPtr ( |
Special constructor used internally to cast a 'const' shared pointer a 'mutable' pointer. |
|
TSharedPtr ( |
Aliasing constructor used to create a shared pointer which shares its reference count with another shared object, but pointing to a different object, typically a subobject. |
|
TSharedPtr ( |
Aliasing constructor used to create a shared pointer which shares its reference count with another shared object, but pointing to a different object, typically a subobject. |
|
TSharedPtr ( |
Aliasing constructor used to create a shared pointer which shares its reference count with another shared object, but pointing to a different object, typically a subobject. |
|
TSharedPtr ( |
Constructs a shared pointer that owns the specified object. |
|
TSharedPtr |
NOTE: The following is an Unreal extension to standard shared_ptr behavior. |
|
TSharedPtr |
NOTE: The following is an Unreal extension to standard shared_ptr behavior. |
|
TSharedPtr |
NOTE: The following is an Unreal extension to standard shared_ptr behavior. |
|
TSharedPtr ( |
Constructs a shared pointer as a shared reference to an existing shared pointer's object. |
|
TSharedPtr ( |
|
|
TSharedPtr ( |
|
|
TSharedPtr ( |
NOTE: The following is an Unreal extension to standard shared_ptr behavior. |
Name | Description | ||
---|---|---|---|
|
ObjectType &... |
Get() |
Returns the object referenced by this pointer, or nullptr if no object is reference |
|
int32 |
GetSharedReferenceCount() |
Returns the number of shared references to this object (including this reference.) IMPORTANT: Not necessarily fast! Should only be used for debugging purposes! |
|
bool |
IsUnique() |
Returns true if this is the only shared reference to this object. |
|
const bool |
IsValid() |
Checks to see if this shared pointer is actually pointing to an object |
|
void |
Reset() |
Resets this shared pointer, removing a reference to the object. |
|
TSharedRef< ... |
ToSharedRef() |
NOTE: The following is an Unreal extension to standard shared_ptr behavior. |
|
TSharedRef< ... |
ToSharedRef() |
NOTE: The following is an Unreal extension to standard shared_ptr behavior. |
|
TWeakPtr< Ob... |
ToWeakPtr() |
Converts a shared pointer to a weak ptr. |
Name | Description | ||
---|---|---|---|
|
operator bool() |
Checks to see if this shared pointer is actually pointing to an object |
|
|
FMakeReferen... |
operator*() |
Dereference operator returns a reference to the object this shared pointer points to |
|
operator= ( |
NOTE: The following is an Unreal extension to standard shared_ptr behavior. |
|
|
operator= ( |
Assignment operator replaces this shared pointer with the specified shared pointer. |
|
|
operator= ( |
||
|
operator= |
NOTE: The following is an Unreal extension to standard shared_ptr behavior. |
|
|
operator= |
NOTE: The following is an Unreal extension to standard shared_ptr behavior. |
|
|
operator= |
NOTE: The following is an Unreal extension to standard shared_ptr behavior. |
|
|
ObjectType &... |
operator->() |
Arrow operator returns a pointer to the object this shared pointer references |
Name |
Description |
---|---|
ElementType |
Name |
Description |
---|---|
Mode |