Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
SharedPointerInternals::FWeakReferencer< Mode > Class Template Reference

#include <SharedPointerInternals.h>

Public Member Functions

FORCEINLINE FWeakReferencer ()
 
FORCEINLINE FWeakReferencer (FWeakReferencer const &InWeakRefCountPointer)
 
FORCEINLINE FWeakReferencer (FWeakReferencer &&InWeakRefCountPointer)
 
FORCEINLINE FWeakReferencer (FSharedReferencer< Mode > const &InSharedRefCountPointer)
 
FORCEINLINE ~FWeakReferencer ()
 
FORCEINLINE FWeakReferenceroperator= (FWeakReferencer const &InWeakReference)
 
FORCEINLINE FWeakReferenceroperator= (FWeakReferencer &&InWeakReference)
 
FORCEINLINE FWeakReferenceroperator= (FSharedReferencer< Mode > const &InSharedReference)
 
FORCEINLINE const bool IsValid () const
 

Private Member Functions

void AssignReferenceController (TReferenceControllerBase< Mode > *NewReferenceController)
 

Private Attributes

TReferenceControllerBase< Mode > * ReferenceController
 

Friends

template<ESPMode OtherMode>
class FSharedReferencer
 

Detailed Description

template<ESPMode Mode>
class SharedPointerInternals::FWeakReferencer< Mode >

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.

Definition at line 663 of file SharedPointerInternals.h.

Constructor & Destructor Documentation

◆ FWeakReferencer() [1/4]

template<ESPMode Mode>
FORCEINLINE SharedPointerInternals::FWeakReferencer< Mode >::FWeakReferencer ( )
inline

Default constructor with empty counter

Definition at line 668 of file SharedPointerInternals.h.

◆ FWeakReferencer() [2/4]

template<ESPMode Mode>
FORCEINLINE SharedPointerInternals::FWeakReferencer< Mode >::FWeakReferencer ( FWeakReferencer< Mode > const & InWeakRefCountPointer)
inline

Construct a weak referencer object from another weak referencer

Definition at line 673 of file SharedPointerInternals.h.

◆ FWeakReferencer() [3/4]

template<ESPMode Mode>
FORCEINLINE SharedPointerInternals::FWeakReferencer< Mode >::FWeakReferencer ( FWeakReferencer< Mode > && InWeakRefCountPointer)
inline

Construct a weak referencer object from an rvalue weak referencer

Definition at line 684 of file SharedPointerInternals.h.

◆ FWeakReferencer() [4/4]

template<ESPMode Mode>
FORCEINLINE SharedPointerInternals::FWeakReferencer< Mode >::FWeakReferencer ( FSharedReferencer< Mode > const & InSharedRefCountPointer)
inline

Construct a weak referencer object from a shared referencer object

Definition at line 691 of file SharedPointerInternals.h.

◆ ~FWeakReferencer()

Destructor.

Definition at line 702 of file SharedPointerInternals.h.

Member Function Documentation

◆ AssignReferenceController()

template<ESPMode Mode>
void SharedPointerInternals::FWeakReferencer< Mode >::AssignReferenceController ( TReferenceControllerBase< Mode > * NewReferenceController)
inlineprivate

Assigns a new reference controller to this counter object, first adding a reference to it, then releasing the previous object.

Definition at line 759 of file SharedPointerInternals.h.

◆ IsValid()

template<ESPMode Mode>
FORCEINLINE const bool SharedPointerInternals::FWeakReferencer< Mode >::IsValid ( ) const
inline

Tests to see whether or not this weak counter contains a valid reference

Returns
True if reference is valid

Definition at line 750 of file SharedPointerInternals.h.

◆ operator=() [1/3]

template<ESPMode Mode>
FORCEINLINE FWeakReferencer & SharedPointerInternals::FWeakReferencer< Mode >::operator= ( FSharedReferencer< Mode > const & InSharedReference)
inline

Assignment operator from a shared reference counter. If this counter was previously referencing an object, that reference will be released.

Definition at line 738 of file SharedPointerInternals.h.

◆ operator=() [2/3]

template<ESPMode Mode>
FORCEINLINE FWeakReferencer & SharedPointerInternals::FWeakReferencer< Mode >::operator= ( FWeakReferencer< Mode > && InWeakReference)
inline

Assignment operator from an rvalue weak referencer object. If this counter was previously referencing an object, that reference will be released.

Definition at line 723 of file SharedPointerInternals.h.

◆ operator=() [3/3]

template<ESPMode Mode>
FORCEINLINE FWeakReferencer & SharedPointerInternals::FWeakReferencer< Mode >::operator= ( FWeakReferencer< Mode > const & InWeakReference)
inline

Assignment operator from a weak referencer object. If this counter was previously referencing an object, that reference will be released.

Definition at line 714 of file SharedPointerInternals.h.

Friends And Related Symbol Documentation

◆ FSharedReferencer

template<ESPMode Mode>
template<ESPMode OtherMode>
friend class FSharedReferencer
friend

Expose access to ReferenceController to FSharedReferencer.

Definition at line 784 of file SharedPointerInternals.h.

Member Data Documentation

◆ ReferenceController

template<ESPMode Mode>
TReferenceControllerBase<Mode>* SharedPointerInternals::FWeakReferencer< Mode >::ReferenceController
private

Pointer to the reference controller for the object a TWeakPtr is referencing

Definition at line 789 of file SharedPointerInternals.h.


The documentation for this class was generated from the following file: