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

A type dispatcher interface. More...

#include <type_dispatcher.hpp>

Inheritance diagram for boost::type_dispatcher:

Classes

class  callback
 An interface to the callback for the concrete type visitor. More...
 
class  callback_base
 The base class for type dispatcher callbacks. More...
 

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

 type_dispatcher (get_callback_impl_type get_callback_impl) 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 type dispatcher interface.

All type dispatchers support this interface. It is used to acquire the visitor interface for the requested type.

Member Typedef Documentation

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

Pointer to the callback acquisition method.

Constructor & Destructor Documentation

boost::type_dispatcher::type_dispatcher ( get_callback_impl_type  get_callback_impl)
inlineexplicitprotected

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){}   
)
inlineprotected

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: