Single static counter.
More...
Public Member Functions |
| | DtObjectCounter (const NameFunction &, size_t size=1, bool enable=true, const DtObjectContainer *container=0) |
| | Add to counter container.
|
| | DtObjectCounter (const std::string &, size_t size=1, bool enable=true, const DtObjectContainer *container=0) |
| | Add to counter container.
|
| | ~DtObjectCounter () |
| | Remove from counter container.
|
| CounterType | value () const |
| | Current value of counter.
|
| CounterType | total () const |
| | Total number of objects ever created.
|
| size_t | size () const |
| | Size of each counter piece of data.
|
| size_t | totalSize () const |
| | Total size in bytes of all data.
|
| const DtObjectContainer * | objects () const |
| | Access tracked objects.
|
Static Public Member Functions |
| static void | Init () |
| | Call as early as possible to initialize statics for this class.
|
| static std::string | Print (std::string regex="") |
| static std::string | PrettyPrintSize (size_t) |
| static std::string | DetectLeaks () |
Detailed Description
Member Typedef Documentation
Constructor & Destructor Documentation
| DtObjectCounter::DtObjectCounter |
( |
const NameFunction & |
, |
|
|
size_t |
size = 1, |
|
|
bool |
enable = true, |
|
|
const DtObjectContainer * |
container = 0 |
|
) |
| |
|
explicit |
Add to counter container.
| DtObjectCounter::DtObjectCounter |
( |
const std::string & |
, |
|
|
size_t |
size = 1, |
|
|
bool |
enable = true, |
|
|
const DtObjectContainer * |
container = 0 |
|
) |
| |
|
explicit |
Add to counter container.
| DtObjectCounter::~DtObjectCounter |
( |
| ) |
|
Remove from counter container.
Member Function Documentation
| static void DtObjectCounter::Init |
( |
| ) |
|
|
static |
Call as early as possible to initialize statics for this class.
| static std::string DtObjectCounter::Print |
( |
std::string |
regex = "" | ) |
|
|
static |
| static std::string DtObjectCounter::PrettyPrintSize |
( |
size_t |
| ) |
|
|
static |
| static std::string DtObjectCounter::DetectLeaks |
( |
| ) |
|
|
static |
Total number of objects ever created.
| size_t DtObjectCounter::size |
( |
| ) |
const |
|
inline |
Size of each counter piece of data.
| size_t DtObjectCounter::totalSize |
( |
| ) |
const |
|
inline |
Total size in bytes of all data.
| const DtObjectContainer* DtObjectCounter::objects |
( |
| ) |
const |
|
inline |
| void DtObjectCounter::decrement |
( |
| ) |
|
|
inlineprivate |
Friends And Related Function Documentation
Member Data Documentation
| const size_t DtObjectCounter::mySize |
|
private |
| const bool DtObjectCounter::myEnableFlag |
|
private |
| const DtObjectContainer* DtObjectCounter::myObjects |
|
private |
Track individual objects.
The documentation for this class was generated from the following file:
- /exports/nfedora7-1/nightly/docs/vrforcesDevelopment.tot/include/vrfutil/objectCounter.h