Loki::ObjScopeGuardImpl2< Obj, MemFun, P1, P2 > Class Template Reference
[Exception-safe code]

#include <ScopeGuard.h>

Inheritance diagram for Loki::ObjScopeGuardImpl2< Obj, MemFun, P1, P2 >:

[legend]
Collaboration diagram for Loki::ObjScopeGuardImpl2< Obj, MemFun, P1, P2 >:
[legend]
List of all members.

Public Member Functions

 ~ObjScopeGuardImpl2 () throw ()
void Execute ()

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

Obj & obj_
MemFun memFun_
const P1 p1_
const P2 p2_

Detailed Description

template<class Obj, typename MemFun, typename P1, typename P2>
class Loki::ObjScopeGuardImpl2< Obj, MemFun, P1, P2 >

Implementation class for a class per-instance member function with two parameters. Each parameter is copied by value - use Loki::ByRef if you must use a reference instead. ScopeGuard ignores any value returned from the call within the Execute function.

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.

Definition at line 535 of file ScopeGuard.h.


The documentation for this class was generated from the following file:
Generated on Sun Feb 25 16:52:45 2007 for Loki by  doxygen 1.5.1-p1