RSB  0.19.0
rsb::eventprocessing::WeakScopeDispatcher< T > Class Template Reference

A variant of ScopeDispatcher that references sinks weakly. More...

#include <ScopeDispatcher.h>

Inheritance diagram for rsb::eventprocessing::WeakScopeDispatcher< T >:
Inheritance graph
Collaboration diagram for rsb::eventprocessing::WeakScopeDispatcher< T >:
Collaboration graph

Public Member Functions

void removeSink (const Scope &scope, const T *sink)
 
void mapSinks (const Scope &scope, boost::function< void(T &)> function) const
 
void mapAllSinks (boost::function< void(T &)> function) const
 
- Public Member Functions inherited from rsb::eventprocessing::ScopeDispatcher< boost::weak_ptr< T > >
bool empty () const
 Indicates whether there are scopes with associated sinks. More...
 
size_t size () const
 Returns number of scopes with associated sinks. More...
 
void addSink (const Scope &scope, const boost::weak_ptr< T > &sink)
 Associates sink with scope. More...
 
void removeSink (const Scope &scope, const boost::weak_ptr< T > &sink)
 Removes sink from the list of sinks associated to scope. More...
 
void mapSinks (const Scope &scope, boost::function< void(const boost::weak_ptr< T > &)> function) const
 Calls function for each sink associated to scope-scopes of scope. More...
 
void mapAllSinks (boost::function< void(const boost::weak_ptr< T > &)> function) const
 Calls function for each sink in the dispatcher. More...
 

Additional Inherited Members

- Protected Types inherited from rsb::eventprocessing::ScopeDispatcher< boost::weak_ptr< T > >
typedef std::list< boost::weak_ptr< T > > SinkList
 
typedef std::map< Scope, SinkListSinkMap
 
- Protected Attributes inherited from rsb::eventprocessing::ScopeDispatcher< boost::weak_ptr< T > >
SinkMap sinks
 

Detailed Description

template<typename T>
class rsb::eventprocessing::WeakScopeDispatcher< T >

A variant of ScopeDispatcher that references sinks weakly.

Author
jmoringe

Definition at line 157 of file ScopeDispatcher.h.

Member Function Documentation

template<typename T>
void rsb::eventprocessing::WeakScopeDispatcher< T >::mapAllSinks ( boost::function< void(T &)>  function) const
inline

Definition at line 201 of file ScopeDispatcher.h.

template<typename T>
void rsb::eventprocessing::WeakScopeDispatcher< T >::mapSinks ( const Scope scope,
boost::function< void(T &)>  function 
) const
inline

Definition at line 182 of file ScopeDispatcher.h.

Referenced by rsb::transport::socket::BusImpl::handle(), and rsb::transport::socket::BusImpl::handleIncoming().

Here is the caller graph for this function:

template<typename T>
void rsb::eventprocessing::WeakScopeDispatcher< T >::removeSink ( const Scope scope,
const T *  sink 
)
inline

Definition at line 159 of file ScopeDispatcher.h.

Referenced by rsb::transport::socket::BusImpl::removeSink().

Here is the caller graph for this function:


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