Loki::ScopeGuardImpl1< F, P1 > Class Template Reference
[Exception-safe code]

#include <src/util/ScopeGuard.h>

Inheritance diagram for Loki::ScopeGuardImpl1< F, P1 >:

Loki::ScopeGuardImplBase

List of all members.

Public Member Functions

void Execute ()
 ~ScopeGuardImpl1 () throw ()

Static Public Member Functions

static ScopeGuardImpl1< F, P1 > MakeGuard (F fun, P1 p1)

Protected Member Functions

 ScopeGuardImpl1 (F fun, P1 p1)

Protected Attributes

fun_
const P1 p1_


Detailed Description

template<typename F, typename P1>
class Loki::ScopeGuardImpl1< F, P1 >

Implementation class for a standalone function or class static function with one parameter. 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 a single standalone helper function, MakeGuard which creates and returns a ScopeGuard.


Constructor & Destructor Documentation

template<typename F, typename P1>
Loki::ScopeGuardImpl1< F, P1 >::~ScopeGuardImpl1 (  )  throw () [inline]

template<typename F, typename P1>
Loki::ScopeGuardImpl1< F, P1 >::ScopeGuardImpl1 ( fun,
P1  p1 
) [inline, protected]


Member Function Documentation

template<typename F, typename P1>
void Loki::ScopeGuardImpl1< F, P1 >::Execute (  )  [inline]

template<typename F, typename P1>
static ScopeGuardImpl1<F, P1> Loki::ScopeGuardImpl1< F, P1 >::MakeGuard ( fun,
P1  p1 
) [inline, static]


Member Data Documentation

template<typename F, typename P1>
F Loki::ScopeGuardImpl1< F, P1 >::fun_ [protected]

template<typename F, typename P1>
const P1 Loki::ScopeGuardImpl1< F, P1 >::p1_ [protected]


The documentation for this class was generated from the following file:

Generated on Tue Jul 28 16:22:16 2009 for Orxonox by  doxygen 1.5.6