Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Templates/SharedPointerInternals.h |
Include |
#include "Templates/SharedPointerInternals.h" |
template<ESPMode Mode>
class FSharedReferencer
FSharedReferencer is a wrapper around a pointer to a reference controller that is used by either a TSharedRef or a TSharedPtr to keep track of a referenced object's lifetime
Name | Description | |
---|---|---|
|
FSharedReferencer() |
Constructor for an empty shared referencer object |
|
FSharedReferencer ( |
Constructor that counts a single reference to the specified object |
|
FSharedReferencer ( |
Copy constructor creates a new reference to the existing object |
|
FSharedReferencer ( |
Move constructor creates no new references |
|
FSharedReferencer ( |
Creates a shared referencer object from a weak referencer object. |
|
FSharedReferencer ( |
Creates a shared referencer object from a weak referencer object. |
Name | Description | |
---|---|---|
|
~FSharedReferencer() |
Destructor. |
Name | Description | ||
---|---|---|---|
|
const int32 |
GetSharedReferenceCount() |
Returns the number of shared references to this object (including this reference.) |
|
const bool |
IsUnique() |
Returns true if this is the only shared reference to this object. |
|
const bool |
IsValid() |
Tests to see whether or not this shared counter contains a valid reference |
Name | Description | ||
---|---|---|---|
|
FSharedRefer... |
operator= ( |
Assignment operator adds a reference to the assigned object. |
|
FSharedRefer... |
operator= ( |
Move assignment operator adds no references to the assigned object. |
Name |
Description |
---|---|
TOps |