Classes | Public Types | Public Member Functions | Protected Types | Protected Attributes | List of all members
can::SimpleDispatcher< Listener > Class Template Reference

#include <dispatcher.h>

Inheritance diagram for can::SimpleDispatcher< Listener >:
Inheritance graph
[legend]

Classes

class  DispatcherBase
 

Public Types

using Callable = typename Listener::Callable
 
using ListenerConstSharedPtr = typename Listener::ListenerConstSharedPtr
 
using Type = typename Listener::Type
 

Public Member Functions

ListenerConstSharedPtr createListener (const Callable &callable)
 
void dispatch (const Type &obj)
 
size_t numListeners ()
 
 operator Callable ()
 
 SimpleDispatcher ()
 

Protected Types

using DispatcherBaseSharedPtr = std::shared_ptr< DispatcherBase >
 

Protected Attributes

DispatcherBaseSharedPtr dispatcher_
 
boost::mutex mutex_
 

Detailed Description

template<typename Listener>
class can::SimpleDispatcher< Listener >

Definition at line 14 of file dispatcher.h.

Member Typedef Documentation

◆ Callable

template<typename Listener>
using can::SimpleDispatcher< Listener >::Callable = typename Listener::Callable

Definition at line 16 of file dispatcher.h.

◆ DispatcherBaseSharedPtr

template<typename Listener>
using can::SimpleDispatcher< Listener >::DispatcherBaseSharedPtr = std::shared_ptr<DispatcherBase>
protected

Definition at line 21 of file dispatcher.h.

◆ ListenerConstSharedPtr

Definition at line 18 of file dispatcher.h.

◆ Type

template<typename Listener>
using can::SimpleDispatcher< Listener >::Type = typename Listener::Type

Definition at line 17 of file dispatcher.h.

Constructor & Destructor Documentation

◆ SimpleDispatcher()

template<typename Listener>
can::SimpleDispatcher< Listener >::SimpleDispatcher ( )
inline

Definition at line 65 of file dispatcher.h.

Member Function Documentation

◆ createListener()

template<typename Listener>
ListenerConstSharedPtr can::SimpleDispatcher< Listener >::createListener ( const Callable callable)
inline

Definition at line 66 of file dispatcher.h.

◆ dispatch()

template<typename Listener>
void can::SimpleDispatcher< Listener >::dispatch ( const Type obj)
inline

Definition at line 70 of file dispatcher.h.

◆ numListeners()

template<typename Listener>
size_t can::SimpleDispatcher< Listener >::numListeners ( )
inline

Definition at line 74 of file dispatcher.h.

◆ operator Callable()

template<typename Listener>
can::SimpleDispatcher< Listener >::operator Callable ( )
inline

Definition at line 77 of file dispatcher.h.

Member Data Documentation

◆ dispatcher_

template<typename Listener>
DispatcherBaseSharedPtr can::SimpleDispatcher< Listener >::dispatcher_
protected

Definition at line 63 of file dispatcher.h.

◆ mutex_

template<typename Listener>
boost::mutex can::SimpleDispatcher< Listener >::mutex_
protected

Definition at line 62 of file dispatcher.h.


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


socketcan_interface
Author(s): Mathias L├╝dtke
autogenerated on Tue May 4 2021 02:50:18