blocxx
BLOCXX_NAMESPACE::ObjScopeGuardImpl0< Obj, MemFun > Class Template Reference

#include <ScopeGuard.hpp>

Inheritance diagram for BLOCXX_NAMESPACE::ObjScopeGuardImpl0< Obj, MemFun >:
BLOCXX_NAMESPACE::ScopeGuardImplBase

Public Member Functions

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

Static Public Member Functions

static ObjScopeGuardImpl0< Obj, MemFun > makeObjGuard (Obj &obj, MemFun memFun)
 

Protected Member Functions

 ObjScopeGuardImpl0 (Obj &obj, MemFun memFun)
 
- Protected Member Functions inherited from BLOCXX_NAMESPACE::ScopeGuardImplBase
 ~ScopeGuardImplBase ()
 
 ScopeGuardImplBase (const ScopeGuardImplBase &other) throw ()
 

Protected Attributes

Obj & m_obj
 
MemFun m_memFun
 
- 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<class Obj, typename MemFun>
class BLOCXX_NAMESPACE::ObjScopeGuardImpl0< Obj, MemFun >

Definition at line 245 of file ScopeGuard.hpp.

Constructor & Destructor Documentation

◆ ~ObjScopeGuardImpl0()

template<class Obj, typename MemFun>
BLOCXX_NAMESPACE::ObjScopeGuardImpl0< Obj, MemFun >::~ObjScopeGuardImpl0 ( )
throw ( )
inline

◆ ObjScopeGuardImpl0()

template<class Obj, typename MemFun>
BLOCXX_NAMESPACE::ObjScopeGuardImpl0< Obj, MemFun >::ObjScopeGuardImpl0 ( Obj & obj,
MemFun memFun )
inlineprotected

Definition at line 264 of file ScopeGuard.hpp.

References m_memFun, and m_obj.

Referenced by makeObjGuard().

Member Function Documentation

◆ execute()

template<class Obj, typename MemFun>
void BLOCXX_NAMESPACE::ObjScopeGuardImpl0< Obj, MemFun >::execute ( )
inline

Definition at line 258 of file ScopeGuard.hpp.

References m_memFun, and m_obj.

◆ makeObjGuard()

template<class Obj, typename MemFun>
static ObjScopeGuardImpl0< Obj, MemFun > BLOCXX_NAMESPACE::ObjScopeGuardImpl0< Obj, MemFun >::makeObjGuard ( Obj & obj,
MemFun memFun )
inlinestatic

Definition at line 248 of file ScopeGuard.hpp.

References ObjScopeGuardImpl0().

Referenced by BLOCXX_NAMESPACE::makeObjGuard().

Member Data Documentation

◆ m_memFun

template<class Obj, typename MemFun>
MemFun BLOCXX_NAMESPACE::ObjScopeGuardImpl0< Obj, MemFun >::m_memFun
protected

Definition at line 268 of file ScopeGuard.hpp.

Referenced by execute(), and ObjScopeGuardImpl0().

◆ m_obj

template<class Obj, typename MemFun>
Obj& BLOCXX_NAMESPACE::ObjScopeGuardImpl0< Obj, MemFun >::m_obj
protected

Definition at line 267 of file ScopeGuard.hpp.

Referenced by execute(), and ObjScopeGuardImpl0().


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