- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Examples

- Class List
- Class Hierarchy
- Class Members

Static Public Member Functions

# RefCounted Class Reference

Search for all occurrences

## 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:
[legend]

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]`

Search for all occurrences

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] | me | Pointer to object to debug, NULL means class static
  [out] | request | Print request object

Returns:
  True if the request was successfully processed.

bool Debug | ( | const RefCounted * | me,
|  | Debug::Footprint & | request
| ) |  | `[static]`

Search for all occurrences

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] | me | Pointer to object to footprint, NULL means class static
  [out] | request | Footprint 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