mbo::const_value_func_1_t< _Tret, _Ty, _Targ1 > Struct Template Reference

function adapter for const reference to member const functions taking 1 argument More...

#include <for_all.h>

Inheritance diagram for mbo::const_value_func_1_t< _Tret, _Ty, _Targ1 >:

Inheritance graph
{mbo::func_type_info_t\< _Tret, _Ty, _Targ1 \>\n||}{std::unary_function\<_Ty , _Tret \>\n||}{mbo::func_type_info_t\< _Tret, _Ty, _Targ1, _Targ2, _Targ3, _Targ4, _Targ5, _Targ6, _Targ7, _Targ8, _Targ9 \>\n||}{std::unary_function\<_Ty, _Tret\>\n||}
[legend]
Collaboration diagram for mbo::const_value_func_1_t< _Tret, _Ty, _Targ1 >:

Collaboration graph
{mbo::func_type_info_t\< _Tret, _Ty, _Targ1 \>\n||}{std::unary_function\<_Ty , _Tret \>\n||}{mbo::func_type_info_t\< _Tret, _Ty, _Targ1, _Targ2, _Targ3, _Targ4, _Targ5, _Targ6, _Targ7, _Targ8, _Targ9 \>\n||}{std::unary_function\<_Ty, _Tret\>\n||}
[legend]

List of all members.

Public Types

typedef result_type(_Ty::* func_t )(arg1_t) const

Public Member Functions

 const_value_func_1_t (func_t func, arg1_t arg1)
result_type operator() (const argument_type &p) const

Protected Attributes

func_t m_func
var1_t m_arg1


Detailed Description

template<typename _Tret, typename _Ty, typename _Targ1>
struct mbo::const_value_func_1_t< _Tret, _Ty, _Targ1 >

function adapter for const reference to member const functions taking 1 argument

Definition at line 720 of file for_all.h.


Member Typedef Documentation

template<typename _Tret, typename _Ty, typename _Targ1>
typedef result_type(_Ty::* mbo::const_value_func_1_t< _Tret, _Ty, _Targ1 >::func_t)(arg1_t) const


Constructor & Destructor Documentation

template<typename _Tret, typename _Ty, typename _Targ1>
mbo::const_value_func_1_t< _Tret, _Ty, _Targ1 >::const_value_func_1_t ( func_t  func,
arg1_t  arg1 
) [inline]

Definition at line 726 of file for_all.h.

00727         : m_func(func)
00728         , m_arg1(arg1)
00729     {
00730     }


Member Function Documentation

template<typename _Tret, typename _Ty, typename _Targ1>
result_type mbo::const_value_func_1_t< _Tret, _Ty, _Targ1 >::operator() ( const argument_type &  p  )  const [inline]

Definition at line 732 of file for_all.h.

References mbo::const_value_func_1_t< _Tret, _Ty, _Targ1 >::m_arg1, and mbo::const_value_func_1_t< _Tret, _Ty, _Targ1 >::m_func.

00733     {
00734         return (p->*m_func)(m_arg1);
00735     }


Member Data Documentation

template<typename _Tret, typename _Ty, typename _Targ1>
func_t mbo::const_value_func_1_t< _Tret, _Ty, _Targ1 >::m_func [protected]

Definition at line 738 of file for_all.h.

Referenced by mbo::const_value_func_1_t< _Tret, _Ty, _Targ1 >::operator()().

template<typename _Tret, typename _Ty, typename _Targ1>
var1_t mbo::const_value_func_1_t< _Tret, _Ty, _Targ1 >::m_arg1 [protected]

Definition at line 739 of file for_all.h.

Referenced by mbo::const_value_func_1_t< _Tret, _Ty, _Targ1 >::operator()().


The documentation for this struct was generated from the following file:
  Hosted on code.google.com  
© Marcus Börger
Generated on Fri Jan 18 21:21:10 2008 for MBO-lib by doxygen 1.5.4