CppDB
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
Public Member Functions | Static Public Member Functions
cppdb::ref_counted Class Reference

This is a class that implements reference counting and designed to be used with ref_ptr. More...

#include <cppdb/ref_ptr.h>

Inheritance diagram for cppdb::ref_counted:
cppdb::backend::connection cppdb::backend::driver cppdb::backend::result cppdb::backend::statement cppdb::pool cppdb::shared_object cppdb::backend::loadable_driver cppdb::backend::static_driver

List of all members.

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)

Detailed Description

This is a class that implements reference counting and designed to be used with ref_ptr.


Constructor & Destructor Documentation

Create an object with 0 reference count

virtual cppdb::ref_counted::~ref_counted ( ) [inline, virtual]

Virtual destructor - for convenience


Member Function Documentation

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


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator