Orxonox  0.0.5 Codename: Arcturus
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
Loki::ScopeGuardImpl0< F > Class Template Reference

Implementation class for a standalone function or class static function with no parameters. More...

#include </home/jenkins/workspace/orxonox_doxygen_trunk/src/external/loki/ScopeGuard.h>

Inheritance diagram for Loki::ScopeGuardImpl0< F >:
Loki::ScopeGuardImplBase

Public Member Functions

 ScopeGuardImpl0 (F fun)
 
 ~ScopeGuardImpl0 () throw ()
 
void Execute ()
 
- Public Member Functions inherited from Loki::ScopeGuardImplBase
 ScopeGuardImplBase () throw ()
 
void Dismiss () const throw ()
 

Static Public Member Functions

static ScopeGuardImpl0< F > MakeGuard (F fun)
 

Protected Attributes

fun_
 
- Protected Attributes inherited from Loki::ScopeGuardImplBase
bool dismissed_
 

Additional Inherited Members

- Protected Member Functions inherited from Loki::ScopeGuardImplBase
 ScopeGuardImplBase (const ScopeGuardImplBase &other) throw ()
 Copy-constructor takes over responsibility from other ScopeGuard. More...
 
 ~ScopeGuardImplBase ()
 
- Static Protected Member Functions inherited from Loki::ScopeGuardImplBase
template<typename J >
static void SafeExecute (J &j) throw ()
 

Detailed Description

template<typename F>
class Loki::ScopeGuardImpl0< F >

Implementation class for a standalone function or class static function with no parameters.

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 >
Loki::ScopeGuardImpl0< F >::~ScopeGuardImpl0 ( )
throw (
)
inline
template<typename F >
Loki::ScopeGuardImpl0< F >::ScopeGuardImpl0 ( fun)
inline

Member Function Documentation

template<typename F >
void Loki::ScopeGuardImpl0< F >::Execute ( )
inline
template<typename F >
static ScopeGuardImpl0<F> Loki::ScopeGuardImpl0< F >::MakeGuard ( fun)
inlinestatic

Member Data Documentation

template<typename F >
F Loki::ScopeGuardImpl0< F >::fun_
protected

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