mbo::const_map_value_func_t< _Tret, _Tkey, _Tval > Struct Template Reference

const function call on map value More...

#include <for_all.h>

Inheritance diagram for mbo::const_map_value_func_t< _Tret, _Tkey, _Tval >:

Inheritance graph
{std::unary_function\<std::map\<_Tkey, _Tval\>::value_type, _Tret\>\n||}
[legend]
Collaboration diagram for mbo::const_map_value_func_t< _Tret, _Tkey, _Tval >:

Collaboration graph
{std::unary_function\<std::map\<_Tkey, _Tval\>::value_type, _Tret\>\n||}
[legend]

List of all members.

Public Types

typedef result_type(_Tval::* func_t )() const

Public Member Functions

 const_map_value_func_t (func_t func)
result_type operator() (const argument_type &it) const

Protected Attributes

func_t m_func


Detailed Description

template<typename _Tret, typename _Tkey, typename _Tval>
struct mbo::const_map_value_func_t< _Tret, _Tkey, _Tval >

const function call on map value

Definition at line 528 of file for_all.h.


Member Typedef Documentation

template<typename _Tret, typename _Tkey, typename _Tval>
typedef result_type(_Tval::* mbo::const_map_value_func_t< _Tret, _Tkey, _Tval >::func_t)() const


Constructor & Destructor Documentation

template<typename _Tret, typename _Tkey, typename _Tval>
mbo::const_map_value_func_t< _Tret, _Tkey, _Tval >::const_map_value_func_t ( func_t  func  )  [inline]

Definition at line 534 of file for_all.h.

00535         : m_func(func)
00536     {
00537     }


Member Function Documentation

template<typename _Tret, typename _Tkey, typename _Tval>
result_type mbo::const_map_value_func_t< _Tret, _Tkey, _Tval >::operator() ( const argument_type &  it  )  const [inline]

Definition at line 539 of file for_all.h.

References mbo::const_map_value_func_t< _Tret, _Tkey, _Tval >::m_func.

00540     {
00541         return (it.second.*m_func)();
00542     }


Member Data Documentation

template<typename _Tret, typename _Tkey, typename _Tval>
func_t mbo::const_map_value_func_t< _Tret, _Tkey, _Tval >::m_func [protected]

Definition at line 546 of file for_all.h.

Referenced by mbo::const_map_value_func_t< _Tret, _Tkey, _Tval >::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