OpenClonk
C4RefCnt Class Reference

#include <C4StringTable.h>

Inheritance diagram for C4RefCnt:
[legend]

Public Member Functions

 C4RefCnt ()=default
 
virtual ~C4RefCnt ()=default
 
void IncRef ()
 
void DecRef ()
 

Protected Attributes

unsigned int RefCnt {0}
 

Detailed Description

Definition at line 21 of file C4StringTable.h.

Constructor & Destructor Documentation

◆ C4RefCnt()

C4RefCnt::C4RefCnt ( )
default

◆ ~C4RefCnt()

virtual C4RefCnt::~C4RefCnt ( )
virtualdefault

Member Function Documentation

◆ DecRef()

void C4RefCnt::DecRef ( )
inline

Definition at line 28 of file C4StringTable.h.

References RefCnt.

Referenced by C4Command::Clear(), C4Command::CompileFunc(), C4RefCntPointer< C4String >::Get(), C4Def::GetActionByName(), C4Property::operator=(), C4RefCntPointer< C4String >::operator=(), C4Object::SetActionByName(), C4AulScriptFunc::SetOverloaded(), C4AulScriptFunc::~C4AulScriptFunc(), C4Property::~C4Property(), C4RefCntPointer< C4String >::~C4RefCntPointer(), and C4ScriptGuiWindow::~C4ScriptGuiWindow().

28 { if (!--RefCnt) delete this; }
unsigned int RefCnt
Definition: C4StringTable.h:31
Here is the caller graph for this function:

◆ IncRef()

void C4RefCnt::IncRef ( )
inline

Member Data Documentation

◆ RefCnt

unsigned int C4RefCnt::RefCnt {0}
protected

Definition at line 31 of file C4StringTable.h.

Referenced by DecRef(), IncRef(), and C4String::~C4String().


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