RSB
0.19.0
|
A variant of ScopeDispatcher that references sinks weakly. More...
#include <ScopeDispatcher.h>
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, SinkList > | SinkMap |
Protected Attributes inherited from rsb::eventprocessing::ScopeDispatcher< boost::weak_ptr< T > > | |
SinkMap | sinks |
A variant of ScopeDispatcher that references sinks weakly.
Definition at line 157 of file ScopeDispatcher.h.
|
inline |
Definition at line 201 of file ScopeDispatcher.h.
|
inline |
Definition at line 182 of file ScopeDispatcher.h.
Referenced by rsb::transport::socket::BusImpl::handle(), and rsb::transport::socket::BusImpl::handleIncoming().
|
inline |
Definition at line 159 of file ScopeDispatcher.h.
Referenced by rsb::transport::socket::BusImpl::removeSink().