OpenClonk
C4Network2Res::Ref Class Reference

#include <C4Network2Res.h>

Public Member Functions

 Ref ()=default
 
 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

◆ Ref() [1/3]

C4Network2Res::Ref::Ref ( )
default

◆ Ref() [2/3]

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:

◆ Ref() [3/3]

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

Definition at line 190 of file C4Network2Res.h.

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

◆ ~Ref()

C4Network2Res::Ref::~Ref ( )
inline

Definition at line 191 of file C4Network2Res.h.

References C4Network2ResCore::Clear().

191 { Clear(); }
Here is the call graph for this function:

Member Function Documentation

◆ Clear()

void C4Network2Res::Ref::Clear ( )
inline

Definition at line 200 of file C4Network2Res.h.

Referenced by C4Network2ResList::AddByCore().

200 { if (pRes) pRes->DelRef(); pRes = nullptr; }
Here is the caller graph for this function:

◆ operator C4Network2Res *()

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

Definition at line 197 of file C4Network2Res.h.

197 { return pRes; }

◆ operator!()

bool C4Network2Res::Ref::operator! ( ) const
inline

Definition at line 198 of file C4Network2Res.h.

198 { return !pRes; }

◆ operator->()

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

Definition at line 199 of file C4Network2Res.h.

199 { return pRes; }

◆ operator=() [1/2]

Ref& C4Network2Res::Ref::operator= ( C4Network2Res pnRes)
inline

Definition at line 192 of file C4Network2Res.h.

References C4Network2ResCore::Set().

192 { Set(pnRes); return *this; }
void Set(C4Network2Res *pnRes)
Here is the call graph for this function:

◆ operator=() [2/2]

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

Definition at line 193 of file C4Network2Res.h.

References C4Network2ResCore::Set().

193 { Set(rCopy.pRes); return *this; }
void Set(C4Network2Res *pnRes)
Here is the call graph for this function:

◆ Set()

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

Definition at line 201 of file C4Network2Res.h.

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

201 { if (pRes == pnRes) return; Clear(); pRes = pnRes; if (pRes) pRes->AddRef(); }
Here is the call graph for this function:

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