#include <referenced.h>


Public Member Functions | |
| void | ref () |
| Increase the reference count. | |
| void | unref () |
| Decrease the reference count and delete this object when the reference count reaches 0. | |
| int | getRefCount () const |
Protected Member Functions | |
| Referenced () | |
| Construct a new reference-counted object. | |
| Referenced (const Referenced &) | |
| Construct a new copy of a reference-counted object. | |
| virtual | ~Referenced () |
| Destruct a reference-counted object. | |
| void | deleteReferenced (Referenced *object) |
Implements reference-counted objects which destroy themselves once they are no longer referenced. Uses an Atomic variable to keep the reference count access thread-safe and efficient.
Definition at line 39 of file referenced.h.
| eq::base::Referenced::Referenced | ( | ) | [inline, protected] |
| eq::base::Referenced::Referenced | ( | const Referenced & | ) | [inline, protected] |
| virtual eq::base::Referenced::~Referenced | ( | ) | [inline, protected, virtual] |
| void eq::base::Referenced::ref | ( | ) | [inline] |
| int eq::base::Referenced::getRefCount | ( | ) | const [inline] |
Definition at line 67 of file referenced.h.
Referenced by eq::net::Node::initLocal().

0.9 by
1.5.8