blocxx
BLOCXX_NAMESPACE::ScopeGuardImpl1< F, P1 > Class Template Reference

#include <ScopeGuard.hpp>

Inheritance diagram for BLOCXX_NAMESPACE::ScopeGuardImpl1< F, P1 >:
BLOCXX_NAMESPACE::ScopeGuardImplBase

Public Member Functions

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

Static Public Member Functions

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

Protected Member Functions

 ScopeGuardImpl1 (F fun, P1 p1)
 
- Protected Member Functions inherited from BLOCXX_NAMESPACE::ScopeGuardImplBase
 ~ScopeGuardImplBase ()
 
 ScopeGuardImplBase (const ScopeGuardImplBase &other) throw ()
 

Protected Attributes

F m_fun
 
const P1 m_p1
 
- 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, typename P1>
class BLOCXX_NAMESPACE::ScopeGuardImpl1< F, P1 >

Definition at line 141 of file ScopeGuard.hpp.

Constructor & Destructor Documentation

◆ ~ScopeGuardImpl1()

template<typename F, typename P1>
BLOCXX_NAMESPACE::ScopeGuardImpl1< F, P1 >::~ScopeGuardImpl1 ( )
throw ( )
inline

◆ ScopeGuardImpl1()

template<typename F, typename P1>
BLOCXX_NAMESPACE::ScopeGuardImpl1< F, P1 >::ScopeGuardImpl1 ( F fun,
P1 p1 )
inlineprotected

Definition at line 160 of file ScopeGuard.hpp.

References F, m_fun, and m_p1.

Referenced by makeGuard().

Member Function Documentation

◆ execute()

template<typename F, typename P1>
void BLOCXX_NAMESPACE::ScopeGuardImpl1< F, P1 >::execute ( )
inline

Definition at line 154 of file ScopeGuard.hpp.

References m_fun, and m_p1.

◆ makeGuard()

template<typename F, typename P1>
static ScopeGuardImpl1< F, P1 > BLOCXX_NAMESPACE::ScopeGuardImpl1< F, P1 >::makeGuard ( F fun,
P1 p1 )
inlinestatic

Definition at line 144 of file ScopeGuard.hpp.

References F, and ScopeGuardImpl1().

Referenced by BLOCXX_NAMESPACE::makeGuard().

Member Data Documentation

◆ m_fun

template<typename F, typename P1>
F BLOCXX_NAMESPACE::ScopeGuardImpl1< F, P1 >::m_fun
protected

Definition at line 163 of file ScopeGuard.hpp.

Referenced by execute(), and ScopeGuardImpl1().

◆ m_p1

template<typename F, typename P1>
const P1 BLOCXX_NAMESPACE::ScopeGuardImpl1< F, P1 >::m_p1
protected

Definition at line 164 of file ScopeGuard.hpp.

Referenced by execute(), and ScopeGuardImpl1().


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