Counter Class Reference
[Time measuring and Counting]


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
#include <lemon/counter.h>

List of all members.

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.


Generated on Thu Jun 4 04:03:39 2009 for LEMON by  doxygen 1.5.9