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

A static type dispatcher class. More...

#include <static_type_dispatcher.hpp>

Inheritance diagram for boost::static_type_dispatcher< T >:
Collaboration diagram for boost::static_type_dispatcher< T >:

Public Types

typedef T type
 

Public Member Functions

template<typename ReceiverT >
 static_type_dispatcher (ReceiverT &receiver)
 Constructor. More...
 

Detailed Description

template<typename T>
class boost::static_type_dispatcher< T >

A static type dispatcher class.

The type dispatcher can be used to pass objects of arbitrary types from one component to another. With regard to the library, the type dispatcher can be used to extract attribute values.

Static type dispatchers allow to specify one or several supported types at compile time.

Member Typedef Documentation

typedef T boost::mpl::identity< BOOST_MPL_AUX_NA_PARAM >::type
inherited

Constructor & Destructor Documentation

template<typename T>
template<typename ReceiverT >
boost::static_type_dispatcher< T >::static_type_dispatcher ( ReceiverT &  receiver)
inlineexplicit

Constructor.

Initializes the dispatcher internals.

The receiver object is not copied inside the dispatcher, but references to it may be kept by the dispatcher after construction. The receiver object must remain valid until the dispatcher is destroyed.

Parameters
receiverUnary function object that will be called on a dispatched value. The receiver must be callable with an argument of any of the supported types of the dispatcher.

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