Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
FRefCountBase Class Reference

#include <RefCounting.h>

Public Member Functions

 FRefCountBase ()=default
 
virtual ~FRefCountBase ()=default
 
 FRefCountBase (const FRefCountBase &Rhs)=delete
 
FRefCountBaseoperator= (const FRefCountBase &Rhs)=delete
 
uint32 AddRef () const
 
uint32 Release () const
 
uint32 GetRefCount () const
 

Private Member Functions

void CheckRefCount () const
 

Private Attributes

int32 NumRefs = 0
 

Detailed Description

Base class implementing thread-safe reference counting.

Definition at line 28 of file RefCounting.h.

Constructor & Destructor Documentation

◆ FRefCountBase() [1/2]

FRefCountBase::FRefCountBase ( )
default

◆ ~FRefCountBase()

virtual FRefCountBase::~FRefCountBase ( )
virtualdefault

◆ FRefCountBase() [2/2]

FRefCountBase::FRefCountBase ( const FRefCountBase & Rhs)
delete

Member Function Documentation

◆ AddRef()

uint32 FRefCountBase::AddRef ( ) const
inline

Definition at line 37 of file RefCounting.h.

◆ CheckRefCount()

void FRefCountBase::CheckRefCount ( ) const
private

◆ GetRefCount()

uint32 FRefCountBase::GetRefCount ( ) const
inline

Definition at line 60 of file RefCounting.h.

◆ operator=()

FRefCountBase & FRefCountBase::operator= ( const FRefCountBase & Rhs)
delete

◆ Release()

uint32 FRefCountBase::Release ( ) const
inline

Definition at line 42 of file RefCounting.h.

Member Data Documentation

◆ NumRefs

int32 FRefCountBase::NumRefs = 0
mutableprivate

Definition at line 66 of file RefCounting.h.


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