1 #ifndef _utl_CountedObject_h_
2 #define _utl_CountedObject_h_
4 #include <utl/CountedObjectRegistry.h>
55 CountedObjectRegistry::RegisterCountedObject<CountedObject<T>>();
61 CountedObjectRegistry::RegisterCountedObject<CountedObject<T>>();
T CountedType
The type of the object we are counting.
CountedObject & operator=(const CountedObject &)
CountedObject(const CountedObject &)
static Counter fgObjectsAssigned
static Counter GetObjectsAssigned()
CountedObjectRegistry::Counter Counter
The (integer) type used to hold the counter.
static Counter GetObjectsCopied()
static Counter fgObjectsCreated
static Counter GetObjectsCreated()
number of calls to the constructor
static Counter GetObjectsExisting()
difference of number of calls to constructor and destructor
static Counter GetObjectsDestroyed()
number of calls to the destructor
static Counter fgObjectsCopied
Mix-in class for counting creation and destruction of objects.
static Counter fgObjectsDestroyed