#include <src/util/ScopeGuard.h>
Public Member Functions | |
void | Execute () |
~ObjScopeGuardImpl0 () throw () | |
Static Public Member Functions | |
static ObjScopeGuardImpl0< Obj, MemFun > | MakeObjGuard (Obj &obj, MemFun memFun) |
Protected Member Functions | |
ObjScopeGuardImpl0 (Obj &obj, MemFun memFun) | |
Protected Attributes | |
MemFun | memFun_ |
Obj & | obj_ |
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::ObjScopeGuardImpl0< Obj, MemFun >::~ObjScopeGuardImpl0 | ( | ) | throw () [inline] |
References Loki::ScopeGuardImplBase::SafeExecute().
Loki::ObjScopeGuardImpl0< Obj, MemFun >::ObjScopeGuardImpl0 | ( | Obj & | obj, | |
MemFun | memFun | |||
) | [inline, protected] |
void Loki::ObjScopeGuardImpl0< Obj, MemFun >::Execute | ( | ) | [inline] |
static ObjScopeGuardImpl0<Obj, MemFun> Loki::ObjScopeGuardImpl0< Obj, MemFun >::MakeObjGuard | ( | Obj & | obj, | |
MemFun | memFun | |||
) | [inline, static] |
MemFun Loki::ObjScopeGuardImpl0< Obj, MemFun >::memFun_ [protected] |
Referenced by Loki::ObjScopeGuardImpl0< Obj, MemFun >::Execute().
Obj& Loki::ObjScopeGuardImpl0< Obj, MemFun >::obj_ [protected] |
Referenced by Loki::ObjScopeGuardImpl0< Obj, MemFun >::Execute().