Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
TRefCountPtr< ReferencedType > Class Template Reference

#include <RefCounting.h>

Public Member Functions

FORCEINLINE TRefCountPtr ()
 
 TRefCountPtr (ReferencedType *InReference, bool bAddRef=true)
 
 TRefCountPtr (const TRefCountPtr &Copy)
 
template<typename CopyReferencedType >
 TRefCountPtr (const TRefCountPtr< CopyReferencedType > &Copy)
 
FORCEINLINE TRefCountPtr (TRefCountPtr &&Move)
 
template<typename MoveReferencedType >
 TRefCountPtr (TRefCountPtr< MoveReferencedType > &&Move)
 
 ~TRefCountPtr ()
 
TRefCountPtroperator= (ReferencedType *InReference)
 
FORCEINLINE TRefCountPtroperator= (const TRefCountPtr &InPtr)
 
template<typename CopyReferencedType >
FORCEINLINE TRefCountPtroperator= (const TRefCountPtr< CopyReferencedType > &InPtr)
 
TRefCountPtroperator= (TRefCountPtr &&InPtr)
 
template<typename MoveReferencedType >
TRefCountPtroperator= (TRefCountPtr< MoveReferencedType > &&InPtr)
 
FORCEINLINE ReferencedTypeoperator-> () const
 
FORCEINLINE operator ReferenceType () const
 
FORCEINLINE ReferencedType ** GetInitReference ()
 
FORCEINLINE ReferencedTypeGetReference () const
 
FORCEINLINE bool IsValid () const
 
FORCEINLINE void SafeRelease ()
 
uint32 GetRefCount ()
 
FORCEINLINE void Swap (TRefCountPtr &InPtr)
 
void Serialize (FArchive &Ar)
 
FORCEINLINE bool operator== (const TRefCountPtr &B) const
 
FORCEINLINE bool operator== (ReferencedType *B) const
 

Private Types

typedef ReferencedTypeReferenceType
 

Private Attributes

ReferencedTypeReference
 

Friends

template<typename OtherType >
class TRefCountPtr
 
FORCEINLINE friend bool IsValidRef (const TRefCountPtr &InReference)
 

Detailed Description

template<typename ReferencedType>
class TRefCountPtr< ReferencedType >

A smart pointer to an object which implements AddRef/Release.

Definition at line 143 of file RefCounting.h.

Member Typedef Documentation

◆ ReferenceType

Definition at line 145 of file RefCounting.h.

Constructor & Destructor Documentation

◆ TRefCountPtr() [1/6]

Definition at line 149 of file RefCounting.h.

◆ TRefCountPtr() [2/6]

TRefCountPtr< ReferencedType >::TRefCountPtr ( ReferencedType * InReference,
bool bAddRef = true )
inline

Definition at line 153 of file RefCounting.h.

◆ TRefCountPtr() [3/6]

◆ TRefCountPtr() [4/6]

Definition at line 172 of file RefCounting.h.

◆ TRefCountPtr() [5/6]

◆ TRefCountPtr() [6/6]

Definition at line 188 of file RefCounting.h.

◆ ~TRefCountPtr()

Definition at line 194 of file RefCounting.h.

Member Function Documentation

◆ GetInitReference()

FORCEINLINE ReferencedType ** TRefCountPtr< ReferencedType >::GetInitReference ( )
inline

Definition at line 271 of file RefCounting.h.

◆ GetRefCount()

uint32 TRefCountPtr< ReferencedType >::GetRefCount ( )
inline

Definition at line 297 of file RefCounting.h.

◆ GetReference()

FORCEINLINE ReferencedType * TRefCountPtr< ReferencedType >::GetReference ( ) const
inline

Definition at line 277 of file RefCounting.h.

◆ IsValid()

FORCEINLINE bool TRefCountPtr< ReferencedType >::IsValid ( ) const
inline

Definition at line 287 of file RefCounting.h.

◆ operator ReferenceType()

Definition at line 266 of file RefCounting.h.

◆ operator->()

Definition at line 261 of file RefCounting.h.

◆ operator=() [1/5]

◆ operator=() [2/5]

◆ operator=() [3/5]

Definition at line 202 of file RefCounting.h.

◆ operator=() [4/5]

Definition at line 232 of file RefCounting.h.

◆ operator=() [5/5]

◆ operator==() [1/2]

◆ operator==() [2/2]

Definition at line 338 of file RefCounting.h.

◆ SafeRelease()

FORCEINLINE void TRefCountPtr< ReferencedType >::SafeRelease ( )
inline

Definition at line 292 of file RefCounting.h.

◆ Serialize()

void TRefCountPtr< ReferencedType >::Serialize ( FArchive & Ar)
inline

Definition at line 315 of file RefCounting.h.

◆ Swap()

Definition at line 308 of file RefCounting.h.

Friends And Related Symbol Documentation

◆ IsValidRef

FORCEINLINE friend bool IsValidRef ( const TRefCountPtr< ReferencedType > & InReference)
friend

Definition at line 282 of file RefCounting.h.

◆ TRefCountPtr

Definition at line 330 of file RefCounting.h.

Member Data Documentation

◆ Reference

Definition at line 327 of file RefCounting.h.


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