Classes | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
can::SimpleDispatcher< Listener >::DispatcherBase Class Reference

#include <dispatcher.h>

Classes

class  GuardedListener
 

Public Member Functions

void dispatch_nolock (const Type &obj) const
 
 DispatcherBase (boost::mutex &mutex)
 
size_t numListeners ()
 
void remove (Listener *d)
 

Static Public Member Functions

static ListenerConstSharedPtr createListener (DispatcherBaseSharedPtr dispatcher, const Callable &callable)
 

Private Member Functions

 DispatcherBase (const DispatcherBase &)=delete
 
DispatcherBaseoperator= (const DispatcherBase &)=delete
 

Private Attributes

std::list< const Listener * > listeners_
 
boost::mutex & mutex_
 

Detailed Description

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

Definition at line 22 of file dispatcher.h.

Constructor & Destructor Documentation

◆ DispatcherBase() [1/2]

template<typename Listener >
can::SimpleDispatcher< Listener >::DispatcherBase::DispatcherBase ( const DispatcherBase )
privatedelete

◆ DispatcherBase() [2/2]

template<typename Listener >
can::SimpleDispatcher< Listener >::DispatcherBase::DispatcherBase ( boost::mutex &  mutex)
inline

Definition at line 41 of file dispatcher.h.

Member Function Documentation

◆ createListener()

template<typename Listener >
static ListenerConstSharedPtr can::SimpleDispatcher< Listener >::DispatcherBase::createListener ( DispatcherBaseSharedPtr  dispatcher,
const Callable callable 
)
inlinestatic

Definition at line 56 of file dispatcher.h.

◆ dispatch_nolock()

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

Definition at line 42 of file dispatcher.h.

◆ numListeners()

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

Definition at line 51 of file dispatcher.h.

◆ operator=()

template<typename Listener >
DispatcherBase& can::SimpleDispatcher< Listener >::DispatcherBase::operator= ( const DispatcherBase )
privatedelete

◆ remove()

template<typename Listener >
void can::SimpleDispatcher< Listener >::DispatcherBase::remove ( Listener d)
inline

Definition at line 47 of file dispatcher.h.

Member Data Documentation

◆ listeners_

template<typename Listener >
std::list<const Listener* > can::SimpleDispatcher< Listener >::DispatcherBase::listeners_
private

Definition at line 39 of file dispatcher.h.

◆ mutex_

template<typename Listener >
boost::mutex& can::SimpleDispatcher< Listener >::DispatcherBase::mutex_
private

Definition at line 38 of file dispatcher.h.


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


socketcan_interface
Author(s): Mathias Lüdtke
autogenerated on Wed Mar 2 2022 00:52:25