utilmm::auto_flag< T > Class Template Reference

#include <utilmm/auto_flag.hh>

List of all members.

Public Member Functions

 auto_flag (int &field, int mask, bool value=true, bool restore_old=true)
 ~auto_flag ()
bool get ()
void set (bool value)


Detailed Description

template<typename T>
class utilmm::auto_flag< T >

Automatically sets and resets a boolean flag on construction and destruction

Constructor & Destructor Documentation

template<typename T>
utilmm::auto_flag< T >::auto_flag ( int &  field,
int  mask,
bool  value = true,
bool  restore_old = true 
) [inline]

template<typename T>
utilmm::auto_flag< T >::~auto_flag (  )  [inline]


Member Function Documentation

template<typename T>
bool utilmm::auto_flag< T >::get (  )  [inline]

template<typename T>
void utilmm::auto_flag< T >::set ( bool  value  )  [inline]


The documentation for this class was generated from the following file:
Generated on Tue Feb 19 10:51:01 2008 for Util-- by doxygen 1.5.3
SourceForge.net Project Page