![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <SharedPointerInternals.h>
Public Member Functions | |
| UE_FORCEINLINE_HINT | FSharedReferencer () |
| FSharedReferencer (TReferenceControllerBase< Mode > *InReferenceController) | |
| FSharedReferencer (FSharedReferencer const &InSharedReference) | |
| FSharedReferencer (FSharedReferencer &&InSharedReference) | |
| FSharedReferencer (FWeakReferencer< Mode > const &InWeakReference) | |
| FSharedReferencer (FWeakReferencer< Mode > &&InWeakReference) | |
| ~FSharedReferencer () | |
| FSharedReferencer & | operator= (FSharedReferencer const &InSharedReference) |
| FSharedReferencer & | operator= (FSharedReferencer &&InSharedReference) |
| UE_FORCEINLINE_HINT const bool | IsValid () const |
| UE_FORCEINLINE_HINT const int32 | GetSharedReferenceCount () const |
| UE_FORCEINLINE_HINT const bool | IsUnique () const |
Friends | |
| template<ESPMode OtherMode> | |
| class | FWeakReferencer |
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
|
inline |
Constructor for an empty shared referencer object
|
inlineexplicit |
Constructor that counts a single reference to the specified object
|
inline |
Copy constructor creates a new reference to the existing object
|
inline |
Move constructor creates no new references
|
inline |
Creates a shared referencer object from a weak referencer object. This will only result in a valid object reference if the object already has at least one other shared referencer.
|
inline |
Creates a shared referencer object from a weak referencer object. This will only result in a valid object reference if the object already has at least one other shared referencer.
|
inline |
Destructor.
|
inline |
Returns the number of shared references to this object (including this reference.)
|
inline |
Returns true if this is the only shared reference to this object. Note that there may be outstanding weak references left.
|
inline |
Tests to see whether or not this shared counter contains a valid reference
|
inline |
Move assignment operator adds no references to the assigned object. If this counter was previously referencing an object, that reference will be released.
|
inline |
Assignment operator adds a reference to the assigned object. If this counter was previously referencing an object, that reference will be released.