OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
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 ( )
default
virtual C4RefCnt::~C4RefCnt ( )
virtualdefault

Member Function Documentation

void C4RefCnt::DecRef ( )
inline

Definition at line 28 of file C4StringTable.h.

References RefCnt.

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

28 { if (!--RefCnt) delete this; }
unsigned int RefCnt
Definition: C4StringTable.h:31

Here is the caller graph for this function:

void C4RefCnt::IncRef ( )
inline

Definition at line 27 of file C4StringTable.h.

References RefCnt.

Referenced by C4Property::C4Property(), C4StringTable::C4StringTable(), C4Property::CompileFunc(), C4Command::CompileFunc(), C4ScriptGuiWindow::CreateFromPropList(), C4Def::GetActionByName(), C4Property::operator=(), C4Command::Set(), C4Object::SetActionByName(), and C4AulScriptFunc::SetOverloaded().

27 { RefCnt++; }
unsigned int RefCnt
Definition: C4StringTable.h:31

Here is the caller graph for this function:

Member Data Documentation

unsigned int C4RefCnt::RefCnt {0}
protected

Definition at line 31 of file C4StringTable.h.

Referenced by DecRef(), and IncRef().


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