libmoost
moost::utils::scope_exit::policy::call_member_function< scopedT > Struct Template Reference

#include <scope_exit.hpp>

Inheritance diagram for moost::utils::scope_exit::policy::call_member_function< scopedT >:
Collaboration diagram for moost::utils::scope_exit::policy::call_member_function< scopedT >:

List of all members.

Public Types

typedef scopedT scoped_type
typedef
boost::reference_wrapper
< scopedT > 
policy_type
typedef void(scoped_type::* member_func_t )()

Public Member Functions

 call_member_function (scoped_type &scoped, member_func_t mf)
 call_member_function (scoped_type &scoped)
void operator() () const

Private Attributes

member_func_t mf_

Detailed Description

template<typename scopedT>
struct moost::utils::scope_exit::policy::call_member_function< scopedT >

Calls a member function of the scoped object. If no member function is specified the void operator()(void) function operator is called

Definition at line 151 of file scope_exit.hpp.


Member Typedef Documentation

template<typename scopedT >
typedef void(scoped_type::* moost::utils::scope_exit::policy::call_member_function< scopedT >::member_func_t)()

Definition at line 155 of file scope_exit.hpp.

template<typename scopedT >
typedef boost::reference_wrapper<scopedT> moost::utils::scope_exit::policy::call_member_function< scopedT >::policy_type

Definition at line 154 of file scope_exit.hpp.


Constructor & Destructor Documentation

template<typename scopedT >
moost::utils::scope_exit::policy::call_member_function< scopedT >::call_member_function ( scoped_type scoped,
member_func_t  mf 
) [inline]

Definition at line 157 of file scope_exit.hpp.

template<typename scopedT >
moost::utils::scope_exit::policy::call_member_function< scopedT >::call_member_function ( scoped_type scoped) [inline, explicit]

Definition at line 162 of file scope_exit.hpp.


Member Function Documentation

template<typename scopedT >
void moost::utils::scope_exit::policy::call_member_function< scopedT >::operator() ( void  ) const [inline]

Definition at line 167 of file scope_exit.hpp.


Member Data Documentation

template<typename scopedT >
member_func_t moost::utils::scope_exit::policy::call_member_function< scopedT >::mf_ [private]

Definition at line 177 of file scope_exit.hpp.


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