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