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 FWeakReferencer
Remarks
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.
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
Default constructor with empty counter | ||
![]() |
FWeakReferencer
(
FWeakReferencer const& InWeakRefCountPointer |
Construct a weak referencer object from another weak referencer | |
![]() |
FWeakReferencer
(
FWeakReferencer&& InWeakRefCountPointer |
Construct a weak referencer object from an rvalue weak referencer | |
![]() |
FWeakReferencer
(
FSharedReferencer< Mode > const& InSharedRefCountPointer |
Construct a weak referencer object from a shared referencer object |
Destructors
Type | Name | Description | |
---|---|---|---|
![]() |
Destructor. |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
const bool | IsValid () |
Tests to see whether or not this weak counter contains a valid reference |
Operators
Type | Name | Description | |
---|---|---|---|
![]() |
FWeakReferencer & | operator=
(
FWeakReferencer const& InWeakReference |
Assignment operator from a weak referencer object. |
![]() |
FWeakReferencer & | operator=
(
FWeakReferencer&& InWeakReference |
Assignment operator from an rvalue weak referencer object. |
![]() |
FWeakReferencer & | operator=
(
FSharedReferencer< Mode > const& InSharedReference |
Assignment operator from a shared reference counter. |