| 
    KiCad PCB EDA Suite
    
   | 
 
RAII class that executes a function at construction and another at destruction. More...
#include <scoped_set_reset.h>
Public Member Functions | |
| SCOPED_EXECUTION (Func initFunc, Func destroyFunc) | |
| ~SCOPED_EXECUTION () | |
Private Attributes | |
| Func | m_initFunc | 
| Func | m_destroyFunc | 
RAII class that executes a function at construction and another at destruction.
Useful to ensure cleanup code is executed even if an exception is thrown.
Definition at line 72 of file scoped_set_reset.h.
      
  | 
  inline | 
Definition at line 75 of file scoped_set_reset.h.
References m_destroyFunc, and m_initFunc.
      
  | 
  inline | 
Definition at line 81 of file scoped_set_reset.h.
References m_destroyFunc.
      
  | 
  private | 
Definition at line 85 of file scoped_set_reset.h.
Referenced by SCOPED_EXECUTION(), and ~SCOPED_EXECUTION().
      
  | 
  private | 
Definition at line 84 of file scoped_set_reset.h.
Referenced by SCOPED_EXECUTION().