Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::aux::single_type_dispatcher_base Class Reference

A base class for a single-type dispatcher. More...

#include <static_type_dispatcher.hpp>

Inheritance diagram for boost::aux::single_type_dispatcher_base:
Collaboration diagram for boost::aux::single_type_dispatcher_base:

Protected Types

typedef callback_base(* get_callback_impl_type )(type_dispatcher *, std::type_info const &)
 Pointer to the callback acquisition method. More...
 

Protected Member Functions

 single_type_dispatcher_base (std::type_info const &type, callback_base const &callback) BOOST_NOEXCEPT
 Initializing constructor. More...
 
 BOOST_DEFAULTED_FUNCTION (type_dispatcher(type_dispatcher const &that),:m_get_callback_impl(that.m_get_callback_impl){}) public
 The method requests a callback for the value of type T. More...
 

Detailed Description

A base class for a single-type dispatcher.

Member Typedef Documentation

typedef callback_base(* boost::type_dispatcher::get_callback_impl_type)(type_dispatcher *, std::type_info const &)
protectedinherited

Pointer to the callback acquisition method.

Constructor & Destructor Documentation

boost::aux::single_type_dispatcher_base::single_type_dispatcher_base ( std::type_info const &  type,
callback_base const &  callback 
)
inlineprotected

Initializing constructor.

Member Function Documentation

boost::type_dispatcher::BOOST_DEFAULTED_FUNCTION ( type_dispatcher(type_dispatcher const &that)  ,
:m_get_callback_impl(that.m_get_callback_impl){}   
)
inlineprotectedinherited

The method requests a callback for the value of type T.

Returns
The type-specific callback or an empty value, if the type is not supported

The documentation for this class was generated from the following file: