This is a class that implements reference counting and designed to be used with ref_ptr. More...
#include <cppdb/ref_ptr.h>
Public Member Functions | |
ref_counted () | |
virtual | ~ref_counted () |
long | add_ref () |
long | use_count () const |
long | del_ref () |
Static Public Member Functions | |
static void | dispose (ref_counted *p) |
This is a class that implements reference counting and designed to be used with ref_ptr.
cppdb::ref_counted::ref_counted | ( | ) | [inline] |
Create an object with 0 reference count
virtual cppdb::ref_counted::~ref_counted | ( | ) | [inline, virtual] |
Virtual destructor - for convenience
long cppdb::ref_counted::add_ref | ( | ) | [inline] |
Increase reference count
long cppdb::ref_counted::del_ref | ( | ) | [inline] |
Decrease reference count
static void cppdb::ref_counted::dispose | ( | ref_counted * | p | ) | [inline, static] |
Delete the object
long cppdb::ref_counted::use_count | ( | ) | const [inline] |
Get reference count