About
User Reference
C++ API
luafaudes
Developer
Links
libFAUDES online
libFAUDES

Sections

Index

faudes::ObjectCount Class Reference

Debugging counter. More...

#include <cfl_helper.h>

List of all members.

Static Public Member Functions

static void Inc (const std::string &rTypeName)
static void Dec (const std::string &rTypeName)
static void Init (void)

Static Public Attributes

static std::map< std::string,
long int > * 
mspMax = NULL
static std::map< std::string,
long int > * 
mspCount = NULL

Private Member Functions

 ObjectCount (void)

Static Private Attributes

static bool msDone = false

Detailed Description

Debugging counter.

Counts items as specified by the type string and reports sums on exit. You must define the macro FAUDES_DEBUG_CODE to get a report.

Technical note: we use the somewhat winded static member construct to guarantee that our member variables have been constructed befor actual counting occurs. This is neccessary since some faudes types might have a static instance and, hence, may be consructed rather early.

Definition at line 337 of file cfl_helper.h.


Constructor & Destructor Documentation

faudes::ObjectCount::ObjectCount ( void   )  [private]

Definition at line 365 of file cfl_helper.cpp.


Member Function Documentation

void faudes::ObjectCount::Dec ( const std::string &  rTypeName  )  [static]

Definition at line 378 of file cfl_helper.cpp.

void faudes::ObjectCount::Inc ( const std::string &  rTypeName  )  [static]

Definition at line 373 of file cfl_helper.cpp.

void faudes::ObjectCount::Init ( void   )  [static]

Definition at line 370 of file cfl_helper.cpp.


Member Data Documentation

bool faudes::ObjectCount::msDone = false [static, private]

Definition at line 345 of file cfl_helper.h.

std::map< std::string, long int > * faudes::ObjectCount::mspCount = NULL [static]

Definition at line 343 of file cfl_helper.h.

std::map< std::string, long int > * faudes::ObjectCount::mspMax = NULL [static]

Definition at line 342 of file cfl_helper.h.


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

libFAUDES 2.22k --- 2013.04.02 --- c++ source docu by doxygen