GNU CommonC++
Protected Member Functions | Static Protected Attributes
ost::objCounter Class Reference

Generic template class for creating classes which maintain an active count of the number of instances currently in active use. More...

#include <objcount.h>

List of all members.

Protected Member Functions

 objCounter ()
virtual ~objCounter ()

Static Protected Attributes

static unsigned objCount = 0

Detailed Description

Generic template class for creating classes which maintain an active count of the number of instances currently in active use.

This is a form of global reference count.

Author:
David Sugar <dyfet@gnutelephony.org> Object instance global reference count.

Constructor & Destructor Documentation

ost::objCounter::objCounter ( ) [inline, protected]

References objCount.

virtual ost::objCounter::~objCounter ( ) [inline, protected, virtual]

References objCount.


Member Data Documentation

unsigned ost::objCounter::objCount = 0 [static, protected]

Referenced by objCounter(), and ~objCounter().


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