Util--  1.1
Public Member Functions | List of all members
utilmm::auto_flag< T > Class Template Reference

#include <utilmm/auto_flag.hh>

Inheritance diagram for utilmm::auto_flag< T >:
Inheritance graph
[legend]
Collaboration diagram for utilmm::auto_flag< T >:
Collaboration graph
[legend]

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

◆ auto_flag()

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

◆ ~auto_flag()

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

Member Function Documentation

◆ get()

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

◆ set()

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 Mon Oct 22 2018 18:39:28 for Util-- by doxygen 1.8.13
SourceForge.net Project Page