Keeps track of (counts) the number of instances for this type of class. More...
#include <instance_counter.h>
Public Member Functions | |
InstanceCounter () | |
InstanceCounter (const InstanceCounter &)=delete | |
InstanceCounter & | operator= (const InstanceCounter &)=delete |
virtual | ~InstanceCounter () |
Static Public Member Functions | |
static int | instances () |
Keeps track of (counts) the number of instances for this type of class.
Each time an instance is created, the count goes up. Each time an instance is deleted, the count goes down. This is typically used to make sure all instances of NullConfObjectRef have been replaced with actual ConfObjectRef objects.
|
inline |
|
delete |
|
inlinevirtual |
|
inlinestatic |
|
delete |