Navigation
Unreal Engine C++ API Reference > Runtime > Core > Templates
References
Module | Core |
Header | /Engine/Source/Runtime/Core/Public/Templates/SharedPointerInternals.h |
Include | #include "Templates/SharedPointerInternals.h" |
Syntax
template<ESPMode Mode>
class FSharedReferencer
Remarks
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
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
Constructor for an empty shared referencer object | ||
![]() |
FSharedReferencer
(
TReferenceControllerBase< Mode >* InReferenceController |
Constructor that counts a single reference to the specified object | |
![]() |
FSharedReferencer
(
FSharedReferencer const& InSharedReference |
Copy constructor creates a new reference to the existing object | |
![]() |
FSharedReferencer
(
FSharedReferencer&& InSharedReference |
Move constructor creates no new references | |
![]() |
FSharedReferencer
(
FWeakReferencer< Mode > const& InWeakReference |
Creates a shared referencer object from a weak referencer object. | |
![]() |
FSharedReferencer
(
FWeakReferencer< Mode >&& InWeakReference |
Creates a shared referencer object from a weak referencer object. |
Destructors
Type | Name | Description | |
---|---|---|---|
![]() |
Destructor. |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
const int32 | 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 |
Operators
Type | Name | Description | |
---|---|---|---|
![]() |
FSharedReferencer & | operator=
(
FSharedReferencer const& InSharedReference |
Assignment operator adds a reference to the assigned object. |
![]() |
FSharedReferencer & | operator=
(
FSharedReferencer&& InSharedReference |
Move assignment operator adds no references to the assigned object. |