blocxx
BLOCXX_NAMESPACE::ScopeGuardImpl0< F > Class Template Reference

#include <ScopeGuard.hpp>

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

Public Member Functions

 ~ScopeGuardImpl0 () throw ()
 
void execute ()
 
- Public Member Functions inherited from BLOCXX_NAMESPACE::ScopeGuardImplBase
 ScopeGuardImplBase () throw ()
 
void dismiss () const throw ()
 

Static Public Member Functions

static ScopeGuardImpl0< FmakeGuard (F fun)
 

Protected Member Functions

 ScopeGuardImpl0 (F fun)
 
- Protected Member Functions inherited from BLOCXX_NAMESPACE::ScopeGuardImplBase
 ~ScopeGuardImplBase ()
 
 ScopeGuardImplBase (const ScopeGuardImplBase &other) throw ()
 

Protected Attributes

F m_fun
 
- Protected Attributes inherited from BLOCXX_NAMESPACE::ScopeGuardImplBase
bool m_dismissed
 

Additional Inherited Members

- Static Protected Member Functions inherited from BLOCXX_NAMESPACE::ScopeGuardImplBase
template<typename J>
static void safeExecute (J &j) throw ()
 

Detailed Description

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

Definition at line 109 of file ScopeGuard.hpp.

Constructor & Destructor Documentation

◆ ~ScopeGuardImpl0()

template<typename F>
BLOCXX_NAMESPACE::ScopeGuardImpl0< F >::~ScopeGuardImpl0 ( )
throw ( )
inline

◆ ScopeGuardImpl0()

template<typename F>
BLOCXX_NAMESPACE::ScopeGuardImpl0< F >::ScopeGuardImpl0 ( F fun)
inlineprotected

Definition at line 128 of file ScopeGuard.hpp.

References F, and m_fun.

Referenced by makeGuard().

Member Function Documentation

◆ execute()

template<typename F>
void BLOCXX_NAMESPACE::ScopeGuardImpl0< F >::execute ( )
inline

Definition at line 122 of file ScopeGuard.hpp.

References m_fun.

◆ makeGuard()

template<typename F>
static ScopeGuardImpl0< F > BLOCXX_NAMESPACE::ScopeGuardImpl0< F >::makeGuard ( F fun)
inlinestatic

Definition at line 112 of file ScopeGuard.hpp.

References F, and ScopeGuardImpl0().

Referenced by BLOCXX_NAMESPACE::makeGuard().

Member Data Documentation

◆ m_fun

template<typename F>
F BLOCXX_NAMESPACE::ScopeGuardImpl0< F >::m_fun
protected

Definition at line 131 of file ScopeGuard.hpp.

Referenced by execute(), and ScopeGuardImpl0().


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