Bayonne2 / Common C++ 2 Framework
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Protected Member Functions | Static Protected Attributes
objCounter< T > Class Template 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>

Collaboration diagram for objCounter< T >:
Collaboration graph
[legend]

Protected Member Functions

 objCounter ()
 
virtual ~objCounter ()
 

Static Protected Attributes

static unsigned objCount = 0
 

Detailed Description

template<class T>
class objCounter< T >

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.nosp@m.@gnu.nosp@m.telep.nosp@m.hony.nosp@m..org Object instance global reference count.

Definition at line 63 of file objcount.h.

Constructor & Destructor Documentation

template<class T >
objCounter< T >::objCounter ( )
inlineprotected

Definition at line 68 of file objcount.h.

template<class T >
virtual objCounter< T >::~objCounter ( )
inlineprotectedvirtual

Definition at line 69 of file objcount.h.

Field Documentation

template<class T >
unsigned objCounter< T >::objCount = 0
staticprotected

Definition at line 66 of file objcount.h.


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