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< T > Class Template Reference

A simple dispatcher that only supports one type. More...

#include <static_type_dispatcher.hpp>

Inheritance diagram for boost::aux::single_type_dispatcher< T >:
Collaboration diagram for boost::aux::single_type_dispatcher< T >:

Public Member Functions

template<typename VisitorT >
 single_type_dispatcher (VisitorT &visitor) BOOST_NOEXCEPT
 Constructor. 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

 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

template<typename T>
class boost::aux::single_type_dispatcher< T >

A simple dispatcher that only supports one type.

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

template<typename T >
template<typename VisitorT >
boost::aux::single_type_dispatcher< T >::single_type_dispatcher ( VisitorT &  visitor)
inlineexplicit

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: