![]() |
Shadowrun: Awakened 29 September 2011 - Build 871
|
World's simplest class :)
#include <RefCountedObj.h>
Public Member Functions | |
| void | AddRef (void) |
| void | Deref (void) |
| RefCountedObj () | |
| virtual | ~RefCountedObj () |
Public Attributes | |
| int | refCount |
Definition at line 15 of file RefCountedObj.h.
| RefCountedObj::RefCountedObj | ( | ) | [inline] |
| virtual RefCountedObj::~RefCountedObj | ( | ) | [inline, virtual] |
Definition at line 19 of file RefCountedObj.h.
{}
| void RefCountedObj::AddRef | ( | void | ) | [inline] |
| void RefCountedObj::Deref | ( | void | ) | [inline] |
Definition at line 21 of file RefCountedObj.h.
References _FILE_AND_LINE_, RakNet::OP_DELETE(), and refCount.
{if (--refCount==0) RakNet::OP_DELETE(this, _FILE_AND_LINE_);}
Definition at line 22 of file RefCountedObj.h.
Referenced by AddRef(), Deref(), and RefCountedObj().
Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.