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

Calls a free function or functor, passing it scoped by *reference*. More...

#include <scope_exit.hpp>

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

List of all members.

Public Types

typedef scopedT scoped_type
typedef
boost::reference_wrapper
< scopedT > 
policy_type
typedef boost::function< void(scoped_type &)> func_t

Public Member Functions

 call_free_function_with_ref (scoped_type &scoped, func_t f_)
void operator() () const

Private Attributes

func_t f_

Detailed Description

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

Calls a free function or functor, passing it scoped by *reference*.

Definition at line 241 of file scope_exit.hpp.


Member Typedef Documentation

template<typename scopedT >
typedef boost::function<void(scoped_type &)> moost::utils::scope_exit::policy::call_free_function_with_ref< scopedT >::func_t

Definition at line 245 of file scope_exit.hpp.

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

Definition at line 244 of file scope_exit.hpp.


Constructor & Destructor Documentation

template<typename scopedT >
moost::utils::scope_exit::policy::call_free_function_with_ref< scopedT >::call_free_function_with_ref ( scoped_type scoped,
func_t  f_ 
) [inline]

Definition at line 247 of file scope_exit.hpp.


Member Function Documentation

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

Definition at line 252 of file scope_exit.hpp.


Member Data Documentation

template<typename scopedT >
func_t moost::utils::scope_exit::policy::call_free_function_with_ref< scopedT >::f_ [private]

Definition at line 262 of file scope_exit.hpp.


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