Navigation
API > API/Runtime > API/Runtime/Core
FWeakReferencer is a wrapper around a pointer to a reference controller that is used by a TWeakPtr to keep track of a referenced object's lifetime.
| Name | FWeakReferencer |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/Templates/SharedPointerInternals.h |
| Include Path | #include "Templates/SharedPointerInternals.h" |
Syntax
template<ESPMode Mode>
class FWeakReferencer
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Default constructor with empty counter | Templates/SharedPointerInternals.h | ||
FWeakReferencer
(
FWeakReferencer const& InWeakRefCountPointer |
Construct a weak referencer object from another weak referencer | Templates/SharedPointerInternals.h | |
FWeakReferencer
(
FWeakReferencer&& InWeakRefCountPointer |
Construct a weak referencer object from an rvalue weak referencer | Templates/SharedPointerInternals.h | |
FWeakReferencer
(
FSharedReferencer< Mode > const& InSharedRefCountPointer |
Construct a weak referencer object from a shared referencer object | Templates/SharedPointerInternals.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FWeakReferencer() |
Destructor. | Templates/SharedPointerInternals.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ReferenceController | TReferenceControllerBase< Mode > * | Pointer to the reference controller for the object a TWeakPtr is referencing | Templates/SharedPointerInternals.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
const bool IsValid() |
Tests to see whether or not this weak counter contains a valid reference | Templates/SharedPointerInternals.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FWeakReferencer & operator=
(
FWeakReferencer const& InWeakReference |
Assignment operator from a weak referencer object. | Templates/SharedPointerInternals.h | |
FWeakReferencer & operator=
(
FWeakReferencer&& InWeakReference |
Assignment operator from an rvalue weak referencer object. | Templates/SharedPointerInternals.h | |
FWeakReferencer & operator=
(
FSharedReferencer< Mode > const& InSharedReference |
Assignment operator from a shared reference counter. | Templates/SharedPointerInternals.h |