C++ API Reference
RefCounted Class Reference

Class implementing standard reference counting. More...

#include <adskRefCounted.h>

+ Inheritance diagram for RefCounted:

Static Public Member Functions

static bool Debug (const RefCounted *me, Debug::Print &request)
 Answer a Print request for a RefCounted object. More...
 
static bool Debug (const RefCounted *me, Debug::Footprint &request)
 Answer a footprint request for a RefCounted object. More...
 

Protected Member Functions

 RefCounted ()
 RefCounted default ctor.
 
 RefCounted (const RefCounted &)
 RefCounted copy ctor.
 
virtual ~RefCounted ()
 RefCounted dtor.
 

Detailed Description

Class implementing standard reference counting.

Simple abstract reference counting class, derive from it and implement the destructor, copy constructor, and assignment operator. Maintains a reference count and indicates deletion is safe when the count drops to zero.

Member Function Documentation

bool Debug ( const RefCounted me,
Debug::Print request 
)
static

Answer a Print request for a RefCounted object.

Use the request object to dump all information on the "me" RefCounted, or all static RefCounted information if "me" is NULL.

Parameters
[in]mePointer to object to debug, NULL means class static
[out]requestPrint request object
Returns
True if the request was successfully processed.
bool Debug ( const RefCounted me,
Debug::Footprint request 
)
static

Answer a footprint request for a RefCounted object.

Populate the Footprint request with the information on all data stored within this class if "me" is NULL, otherwise the information stored in the RefCounted object pointed at by "me".

Parameters
[in]mePointer to object to footprint, NULL means class static
[out]requestFootprint object to populate
Returns
True if the request was successfully processed. The Footprint object will have all information added to it.

The documentation for this class was generated from the following files: