RefCounted Class Reference


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.

#include <adskRefCounted.h>

Inheritance diagram for RefCounted:

List of all members.

Static Public Member Functions

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

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.

RefCounted RefCounted RefCounted RefCounted RefCounted RefCounted RefCounted RefCounted RefCounted RefCounted
RefCounted RefCounted RefCounted RefCounted RefCounted RefCounted RefCounted RefCounted RefCounted RefCounted