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

#include <SharedPointerInternals.h>

+ Collaboration diagram for SharedPointerInternals::FWeakReferencer< Mode >:

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 Types

typedef FReferenceControllerOps< Mode > TOps
 

Private Member Functions

void AssignReferenceController (FReferenceControllerBase *NewReferenceController)
 

Private Attributes

FReferenceControllerBaseReferenceController
 

Friends

template<int OtherMode>
class FSharedReferencer
 

Detailed Description

template<int 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 549 of file SharedPointerInternals.h.

Member Typedef Documentation

◆ TOps

template<int Mode>
typedef FReferenceControllerOps<Mode> SharedPointerInternals::FWeakReferencer< Mode >::TOps
private

Definition at line 551 of file SharedPointerInternals.h.

Constructor & Destructor Documentation

◆ FWeakReferencer() [1/4]

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

Default constructor with empty counter

Definition at line 556 of file SharedPointerInternals.h.

◆ FWeakReferencer() [2/4]

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

Construct a weak referencer object from another weak referencer

Definition at line 561 of file SharedPointerInternals.h.

◆ FWeakReferencer() [3/4]

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

Construct a weak referencer object from an rvalue weak referencer

Definition at line 572 of file SharedPointerInternals.h.

◆ FWeakReferencer() [4/4]

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

Construct a weak referencer object from a shared referencer object

Definition at line 579 of file SharedPointerInternals.h.

◆ ~FWeakReferencer()

template<int Mode>
FORCEINLINE SharedPointerInternals::FWeakReferencer< Mode >::~FWeakReferencer ( )
inline

Destructor.

Definition at line 590 of file SharedPointerInternals.h.

Member Function Documentation

◆ AssignReferenceController()

template<int Mode>
void SharedPointerInternals::FWeakReferencer< Mode >::AssignReferenceController ( FReferenceControllerBase * 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 647 of file SharedPointerInternals.h.

◆ IsValid()

template<int 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 638 of file SharedPointerInternals.h.

◆ operator=() [1/3]

template<int 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 626 of file SharedPointerInternals.h.

◆ operator=() [2/3]

template<int 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 611 of file SharedPointerInternals.h.

◆ operator=() [3/3]

template<int 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 602 of file SharedPointerInternals.h.

Friends And Related Symbol Documentation

◆ FSharedReferencer

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

Expose access to ReferenceController to FSharedReferencer.

Definition at line 672 of file SharedPointerInternals.h.

Member Data Documentation

◆ ReferenceController

template<int Mode>
FReferenceControllerBase* SharedPointerInternals::FWeakReferencer< Mode >::ReferenceController
private

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

Definition at line 677 of file SharedPointerInternals.h.


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