The Vish Visualization Shell 0.3
Vish
MemCore::Counter::Incrementer Class Reference

Exception-safe incrementing/decrementing of a counter. More...

#include <elementary/memcore/Counter.hpp>

Public Member Functions

 Incrementer (const Incrementer &I)
 Copy constructor, increments the counter.
 Incrementer (Counter &C)
 Constructor, increments the counter.
counter_t operator() () const throw ()
 Return the current counter value.
 ~Incrementer ()
 Destructor, decrements the counter.

Detailed Description

Exception-safe incrementing/decrementing of a counter.

Incrementer objects automatically increment a counter during construction and decrements it during destruction.