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

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

#include <scope_exit.hpp>

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

List of all members.

Public Types

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

Public Member Functions

 call_free_function_with_val (scoped_type const &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_val< scopedT >

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

Definition at line 214 of file scope_exit.hpp.


Member Typedef Documentation

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

Definition at line 218 of file scope_exit.hpp.

template<typename scopedT>
typedef scopedT moost::utils::scope_exit::policy::call_free_function_with_val< scopedT >::policy_type

Reimplemented in moost::utils::scope_exit::policy::free_malloc< scopedT >.

Definition at line 217 of file scope_exit.hpp.


Constructor & Destructor Documentation

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

Definition at line 220 of file scope_exit.hpp.


Member Function Documentation

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

Definition at line 225 of file scope_exit.hpp.


Member Data Documentation

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

Definition at line 235 of file scope_exit.hpp.


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