mbo::obj_func_t< _Ty, _Tret, _Targ > Struct Template Reference

object function adapter More...

#include <for_all.h>

Inheritance diagram for mbo::obj_func_t< _Ty, _Tret, _Targ >:

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

Collaboration graph
{mbo::func_type_info_t\< _Tret, _Ty, _Targ \>\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 _Ty obj_t
typedef result_type(_Ty::* func_t )(arg1_t)

Public Member Functions

 obj_func_t (obj_t &obj, func_t func)
result_type operator() (arg1_t arg1)

Protected Attributes

obj_tm_obj
func_t m_func


Detailed Description

template<class _Ty, typename _Tret, typename _Targ>
struct mbo::obj_func_t< _Ty, _Tret, _Targ >

object function adapter

Definition at line 97 of file for_all.h.


Member Typedef Documentation

template<class _Ty, typename _Tret, typename _Targ>
typedef _Ty mbo::obj_func_t< _Ty, _Tret, _Targ >::obj_t

Definition at line 101 of file for_all.h.

template<class _Ty, typename _Tret, typename _Targ>
typedef result_type(_Ty::* mbo::obj_func_t< _Ty, _Tret, _Targ >::func_t)(arg1_t)


Constructor & Destructor Documentation

template<class _Ty, typename _Tret, typename _Targ>
mbo::obj_func_t< _Ty, _Tret, _Targ >::obj_func_t ( obj_t obj,
func_t  func 
) [inline]

Definition at line 104 of file for_all.h.

00105         : m_obj(obj)
00106         , m_func(func)
00107     {
00108     }


Member Function Documentation

template<class _Ty, typename _Tret, typename _Targ>
result_type mbo::obj_func_t< _Ty, _Tret, _Targ >::operator() ( arg1_t  arg1  )  [inline]

Definition at line 110 of file for_all.h.

References mbo::obj_func_t< _Ty, _Tret, _Targ >::m_func, and mbo::obj_func_t< _Ty, _Tret, _Targ >::m_obj.

00111     {
00112         return (m_obj.*m_func)(arg1);
00113     }


Member Data Documentation

template<class _Ty, typename _Tret, typename _Targ>
obj_t& mbo::obj_func_t< _Ty, _Tret, _Targ >::m_obj [protected]

Definition at line 117 of file for_all.h.

Referenced by mbo::obj_func_t< const _Ty, _Tret, _Targ >::operator()(), and mbo::obj_func_t< _Ty, _Tret, _Targ >::operator()().

template<class _Ty, typename _Tret, typename _Targ>
func_t mbo::obj_func_t< _Ty, _Tret, _Targ >::m_func [protected]

Definition at line 118 of file for_all.h.

Referenced by mbo::obj_func_t< const _Ty, _Tret, _Targ >::operator()(), and mbo::obj_func_t< _Ty, _Tret, _Targ >::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