mbo::const_value_func_t< _Tret, _Ty > Struct Template Reference

function adapter for const reference to member const functions More...

#include <for_all.h>

Inheritance diagram for mbo::const_value_func_t< _Tret, _Ty >:

Inheritance graph
{mbo::func_type_info_t\< _Tret, _Ty \>\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_t< _Tret, _Ty >:

Collaboration graph
{mbo::func_type_info_t\< _Tret, _Ty \>\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 )()

Public Member Functions

 const_value_func_t (func_t func)
result_type operator() (const argument_type &p) const

Protected Attributes

func_t m_func


Detailed Description

template<typename _Tret, typename _Ty>
struct mbo::const_value_func_t< _Tret, _Ty >

function adapter for const reference to member const functions

Definition at line 624 of file for_all.h.


Member Typedef Documentation

template<typename _Tret, typename _Ty>
typedef result_type(_Ty::* mbo::const_value_func_t< _Tret, _Ty >::func_t)()


Constructor & Destructor Documentation

template<typename _Tret, typename _Ty>
mbo::const_value_func_t< _Tret, _Ty >::const_value_func_t ( func_t  func  )  [inline]

Definition at line 630 of file for_all.h.

00631         : m_func(func)
00632     {
00633     }


Member Function Documentation

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

Definition at line 635 of file for_all.h.

References mbo::const_value_func_t< _Tret, _Ty >::m_func.

00636     {
00637         return (p->*m_func)();
00638     }


Member Data Documentation

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

Definition at line 641 of file for_all.h.

Referenced by mbo::const_value_func_t< _Tret, _Ty >::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