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

const function call on map value where value type is a pointer 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 where value type is a pointer

Definition at line 552 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 558 of file for_all.h.

00559         : m_func(func)
00560     {
00561     }


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 563 of file for_all.h.

00564     {
00565         return (it.second->*m_func)();
00566     }


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 570 of file for_all.h.


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