#include <src/util/ScopeGuard.h>
Public Member Functions | |
void | Execute () |
~ObjScopeGuardImpl1 () throw () | |
Static Public Member Functions | |
static ObjScopeGuardImpl1< Obj, MemFun, P1 > | MakeObjGuard (Obj &obj, MemFun memFun, P1 p1) |
Protected Member Functions | |
ObjScopeGuardImpl1 (Obj &obj, MemFun memFun, P1 p1) | |
Protected Attributes | |
MemFun | memFun_ |
Obj & | obj_ |
const P1 | p1_ |
This class has 3 standalone helper functions which create a ScopeGuard. One is MakeObjGuard, which is deprecated but provided for older code. The other two are MakeGuard overloads, one which takes a pointer to an object, and the other which takes a reference.
Loki::ObjScopeGuardImpl1< Obj, MemFun, P1 >::~ObjScopeGuardImpl1 | ( | ) | throw () [inline] |
References Loki::ScopeGuardImplBase::SafeExecute().
Loki::ObjScopeGuardImpl1< Obj, MemFun, P1 >::ObjScopeGuardImpl1 | ( | Obj & | obj, | |
MemFun | memFun, | |||
P1 | p1 | |||
) | [inline, protected] |
void Loki::ObjScopeGuardImpl1< Obj, MemFun, P1 >::Execute | ( | ) | [inline] |
static ObjScopeGuardImpl1<Obj, MemFun, P1> Loki::ObjScopeGuardImpl1< Obj, MemFun, P1 >::MakeObjGuard | ( | Obj & | obj, | |
MemFun | memFun, | |||
P1 | p1 | |||
) | [inline, static] |
MemFun Loki::ObjScopeGuardImpl1< Obj, MemFun, P1 >::memFun_ [protected] |
Referenced by Loki::ObjScopeGuardImpl1< Obj, MemFun, P1 >::Execute().
Obj& Loki::ObjScopeGuardImpl1< Obj, MemFun, P1 >::obj_ [protected] |
Referenced by Loki::ObjScopeGuardImpl1< Obj, MemFun, P1 >::Execute().
const P1 Loki::ObjScopeGuardImpl1< Obj, MemFun, P1 >::p1_ [protected] |
Referenced by Loki::ObjScopeGuardImpl1< Obj, MemFun, P1 >::Execute().