#include <core/refcount.h>
Inheritance diagram for neo::core::RefCount:


You must NEVER delete a reference counted object directly! All access to a reference counted object MUST be done through the smart pointer interface as offered by the neo::core::Pointer template class
Public Member Functions | |
| void | incRef () |
| void | decRef () |
| int | getRefCount () const |
Protected Member Functions | |
| RefCount () | |
| virtual | ~RefCount () |
| neo::core::RefCount::RefCount | ( | ) | [inline, protected] |
Reset reference count to 0
| neo::core::RefCount::~RefCount | ( | ) | [inline, protected, virtual] |
Dummy method for virtual destructor chaining
| void neo::core::RefCount::incRef | ( | ) | [inline] |
Increase reference count
| void neo::core::RefCount::decRef | ( | ) | [inline] |
Decrease reference count and garbage collect if 0
| int neo::core::RefCount::getRefCount | ( | ) | const [inline] |
Get current reference count
1.5.1