qpid::sys::ScopedIncrement< T, F > Class Template Reference

Increment counter in constructor and decrement in destructor. More...

#include <ScopedIncrement.h>

List of all members.

Public Member Functions

 ScopedIncrement (T &c, F f=0)


Detailed Description

template<class T, class F = boost::function<void()>>
class qpid::sys::ScopedIncrement< T, F >

Increment counter in constructor and decrement in destructor.

Optionally call a function if the decremented counter value is 0. Note the function must not throw, it is called in the destructor.


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

Generated on Thu May 15 22:24:55 2008 for Qpid by  doxygen 1.5.5