NoCounter

Declared in lemon/counter.h, in the group Time Measuring and Counting; the same class on the Doxygen site.

class NoCounter

‘Do nothing’ version of Counter.

This class can be used in the same way as Counter, but it does not count at all and does not print report on destruction.

Replacing a Counter with a NoCounter makes it possible to turn off all counting and reporting (SubCounters should also be replaced with NoSubCounters), so it does not affect the efficiency of the program at all.

See also

Counter

Public Types

typedef _NoSubCounter< NoCounter > SubCounter
typedef _NoSubCounter< NoCounter > NoSubCounter

Public Functions

inline NoCounter()
inline NoCounter(std::string, std::ostream&)
inline NoCounter( const char * , std::ostream & )
inline NoCounter(std::string)
inline NoCounter( const char * )
inline NoCounter & operator++()
inline int operator++(int)
inline NoCounter & operator--()
inline int operator--(int)
inline NoCounter & operator+=(int)
inline NoCounter & operator-=(int)
inline void reset(int)
inline void reset()
inline operator int()