GNU CommonC++
ost::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>

Protected Member Functions

 objCounter ()
 
virtual ~objCounter ()
 

Static Protected Attributes

static unsigned objCount
 

Detailed Description

template<class T>
class ost::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.

Constructor & Destructor Documentation

◆ objCounter()

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

References objCount.

◆ ~objCounter()

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

References objCount.

Member Data Documentation

◆ objCount

template<class T>
unsigned ost::objCounter< T >::objCount
staticprotected

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


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