Counter Class Reference
[Time measuring and Counting]

#include <lemon/counter.h>

List of all members.


Detailed Description

This class makes it easier to count certain events. You can increment or decrement the counter using operator++ and operator--. A report is automatically printed on destruction.
Todo:
More doc


Public Types

typedef _SubCounter< CounterSubCounter
 
typedef _SubNoCounter< CounterSubNoCounter
 

Public Member Functions

 Counter ()
 
 Counter (std::string title, std::ostream &os=std::cerr)
 
 Counter (const char *title, std::ostream &os=std::cerr)
 
 ~Counter ()
 Destructor. Prints the given title and the value of the counter.
Counteroperator++ ()
 
int operator++ (int)
 
Counteroperator-- ()
 
int operator-- (int)
 
Counteroperator+= (int c)
 
Counteroperator-= (int c)
 
void reset (int c=0)
 
 operator int ()
 


Member Typedef Documentation

typedef _SubCounter<Counter> SubCounter

Todo:
document please.

typedef _SubNoCounter<Counter> SubNoCounter

Todo:
document please.


The documentation for this class was generated from the following file:
Generated on Tue Oct 31 09:49:52 2006 for LEMON by  doxygen 1.5.1