Public Member Functions | |
subscriber (const word &name) | |
subscriber (const subscriber &) | |
Copy constructor, only copies the name, not the list. More... | |
subscriber (subscriber &&) | |
Move constructor, moves the name and the list, also change the subriber of the object in the list More... | |
subscriber & | operator= (const subscriber &) |
Copy assignemnt, only assign the name, do not assign the list. More... | |
subscriber & | operator= (subscriber &&) |
Move assignment, move assign name and list, also change the subcriber of the object in the list More... | |
virtual | ~subscriber () |
virtual bool | subscribe (message msg, observer *obsevr) const |
virtual bool | unsubscribe (observer *obsevr) const |
bool | notify (uint32 iter, real t, real dt, const message msg, const anyList &varList) |
bool | notify (const timeInfo &ti, const message msg, const anyList &varList) |
const word & | subscriberName () const |
Private Attributes | |
std::array< List< observer * >, message::numEvents()> | observerList_ |
word | subName_ |
Definition at line 37 of file subscriber.hpp.
|
inline |
Definition at line 48 of file subscriber.hpp.
subscriber | ( | const subscriber & | src | ) |
Copy constructor, only copies the name, not the list.
Definition at line 27 of file subscriber.cpp.
subscriber | ( | subscriber && | src | ) |
Move constructor, moves the name and the list, also change the subriber of the object in the list
Definition at line 33 of file subscriber.cpp.
References subscriber::observerList_.
|
virtual |
Definition at line 70 of file subscriber.cpp.
pFlow::subscriber & operator= | ( | const subscriber & | rhs | ) |
Copy assignemnt, only assign the name, do not assign the list.
Definition at line 48 of file subscriber.cpp.
References subscriber::subName_.
pFlow::subscriber & operator= | ( | subscriber && | rhs | ) |
Move assignment, move assign name and list, also change the subcriber of the object in the list
Definition at line 54 of file subscriber.cpp.
Definition at line 85 of file subscriber.cpp.
References message::equivalentTo(), and message::size().
Referenced by observer::addToSubscriber().
|
virtual |
Definition at line 107 of file subscriber.cpp.
References pFlow::find().
Definition at line 126 of file subscriber.cpp.
References message::equivalentTo(), and message::size().
Definition at line 156 of file subscriber.cpp.
References timeInfo::dt(), timeInfo::iter(), and timeInfo::t().
|
inline |
Definition at line 85 of file subscriber.hpp.
References subscriber::subName_.
|
mutableprivate |
Definition at line 42 of file subscriber.hpp.
Referenced by subscriber::subscriber().
|
private |
Definition at line 44 of file subscriber.hpp.
Referenced by subscriber::operator=(), and subscriber::subscriberName().