Orxonox: Loki::ScopeGuardImpl0< F > Class Template Reference

# Loki::ScopeGuardImpl0< F > Class Template Reference
[Exception-safe code]

`#include <src/util/ScopeGuard.h>`

Inheritance diagram for Loki::ScopeGuardImpl0< F >:

List of all members.

## Public Member Functions

void | Execute ()
| ~ScopeGuardImpl0 () throw ()

## Static Public Member Functions

static ScopeGuardImpl0< F > | MakeGuard (F fun)

## Protected Member Functions

| ScopeGuardImpl0 (F fun)

## Protected Attributes

F | fun_

## 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]`

References Loki::ScopeGuardImplBase::SafeExecute().

template<typename F>

Loki::ScopeGuardImpl0< F >::ScopeGuardImpl0 | ( | F | fun | ) | `[inline, protected]`

## Member Function Documentation

template<typename F>

void Loki::ScopeGuardImpl0< F >::Execute | ( |  | ) | `[inline]`

References Loki::ScopeGuardImpl0< F >::fun_.

template<typename F>

static ScopeGuardImpl0<F> Loki::ScopeGuardImpl0< F >::MakeGuard | ( | F | fun | ) | `[inline, static]`

## Member Data Documentation

template<typename F>

F Loki::ScopeGuardImpl0< F >::fun_`[protected]`

Referenced by Loki::ScopeGuardImpl0< F >::Execute().

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

- src/util/ScopeGuard.h