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

#include <ScopeGuard.h>

Inheritance diagram for Loki::ObjScopeGuardImpl0< Obj, MemFun >:

Collaboration diagram for Loki::ObjScopeGuardImpl0< Obj, MemFun >:
List of all members.

Public Member Functions

 ~ObjScopeGuardImpl0 () throw ()
void Execute ()

Static Public Member Functions

static ObjScopeGuardImpl0<
Obj, MemFun > 
MakeObjGuard (Obj &obj, MemFun memFun)

Protected Member Functions

 ObjScopeGuardImpl0 (Obj &obj, MemFun memFun)

Protected Attributes

Obj & obj_
MemFun memFun_

Detailed Description

template<class Obj, typename MemFun>
class Loki::ObjScopeGuardImpl0< Obj, MemFun >

Implementation class for a class per-instance member function with no parameters. 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 410 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