#include <utilmm/auto_flag.hh>
Public Member Functions | |
| auto_flag (bool &flag, bool init=true, bool restore_old=true) | |
| ~auto_flag () | |
| bool | get () const |
| operator safe_bool () const | |
Classes | |
| struct | safe_bool_struct |
| utilmm::auto_flag< bool >::auto_flag | ( | bool & | flag, | |
| bool | init = true, |
|||
| bool | restore_old = true | |||
| ) | [inline] |
Sets flag to init. On destruction, the flag will be set to either ! init if restore_old is false, or to the initial flag value if restore_old is true
| utilmm::auto_flag< bool >::~auto_flag | ( | ) | [inline] |
Sets the value of the flag according to the restore_old argument of the constructor
| bool utilmm::auto_flag< bool >::get | ( | ) | const [inline] |
Get the current value of the flag
| utilmm::auto_flag< bool >::operator safe_bool | ( | ) | const [inline] |
1.5.3