OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
C4Network2Res::Ref Class Reference

#include <C4Network2Res.h>

Public Member Functions

 Ref ()
 
 Ref (C4Network2Res *pRes)
 
 Ref (const Ref &rCopy)
 
 ~Ref ()
 
Refoperator= (C4Network2Res *pnRes)
 
Refoperator= (const Ref &rCopy)
 
 operator C4Network2Res * () const
 
bool operator! () const
 
C4Network2Resoperator-> () const
 
void Clear ()
 
void Set (C4Network2Res *pnRes)
 

Detailed Description

Definition at line 185 of file C4Network2Res.h.

Constructor & Destructor Documentation

C4Network2Res::Ref::Ref ( )
inline

Definition at line 188 of file C4Network2Res.h.

188 : pRes(nullptr) { }
C4Network2Res::Ref::Ref ( C4Network2Res pRes)
inline

Definition at line 189 of file C4Network2Res.h.

References C4Network2Res::AddRef().

189 : pRes(pRes) { if (pRes) pRes->AddRef(); }

Here is the call graph for this function:

C4Network2Res::Ref::Ref ( const Ref rCopy)
inline

Definition at line 190 of file C4Network2Res.h.

References C4Network2Res::AddRef().

190 : pRes(rCopy.pRes) { if (pRes) pRes->AddRef(); }

Here is the call graph for this function:

C4Network2Res::Ref::~Ref ( )
inline

Definition at line 191 of file C4Network2Res.h.

References Clear().

191 { Clear(); }

Here is the call graph for this function:

Member Function Documentation

void C4Network2Res::Ref::Clear ( )
inline

Definition at line 200 of file C4Network2Res.h.

References C4Network2Res::DelRef().

Referenced by C4Network2ResList::AddByCore(), Set(), and ~Ref().

200 { if (pRes) pRes->DelRef(); pRes = nullptr; }

Here is the call graph for this function:

Here is the caller graph for this function:

C4Network2Res::Ref::operator C4Network2Res * ( ) const
inline

Definition at line 197 of file C4Network2Res.h.

197 { return pRes; }
bool C4Network2Res::Ref::operator! ( ) const
inline

Definition at line 198 of file C4Network2Res.h.

198 { return !pRes; }
C4Network2Res* C4Network2Res::Ref::operator-> ( ) const
inline

Definition at line 199 of file C4Network2Res.h.

199 { return pRes; }
Ref& C4Network2Res::Ref::operator= ( C4Network2Res pnRes)
inline

Definition at line 192 of file C4Network2Res.h.

References Set().

192 { Set(pnRes); return *this; }
void Set(C4Network2Res *pnRes)

Here is the call graph for this function:

Ref& C4Network2Res::Ref::operator= ( const Ref rCopy)
inline

Definition at line 193 of file C4Network2Res.h.

References Set().

193 { Set(rCopy.pRes); return *this; }
void Set(C4Network2Res *pnRes)

Here is the call graph for this function:

void C4Network2Res::Ref::Set ( C4Network2Res pnRes)
inline

Definition at line 201 of file C4Network2Res.h.

References C4Network2Res::AddRef(), and Clear().

Referenced by operator=().

201 { if (pRes == pnRes) return; Clear(); pRes = pnRes; if (pRes) pRes->AddRef(); }

Here is the call graph for this function:

Here is the caller graph for this function:


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