C++ features by examples

Public Member Functions

void publish (const string &topic, Message &m)
 

Public Attributes

map< string, forward_list< reference_wrapper< Subscriber > > > topic_subscribers
 

Detailed Description

Definition at line 687 of file patterns.cpp.

Member Function Documentation

◆ publish()

void Publisher::publish ( const string &  topic,
Message m 
)
inline

Definition at line 691 of file patterns.cpp.

691 {
692 for (Subscriber& s : topic_subscribers[topic])
693 s.message(m);
694 }
map< string, forward_list< reference_wrapper< Subscriber > > > topic_subscribers
Definition: patterns.cpp:689
Here is the caller graph for this function:

Member Data Documentation

◆ topic_subscribers

map<string, forward_list<reference_wrapper<Subscriber> > > Publisher::topic_subscribers

Definition at line 689 of file patterns.cpp.


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