Public Member Functions | |
observer (message msg) | |
observer (const subscriber *subscrbr, message msg) | |
virtual | ~observer () |
void | subscribe (const subscriber *subscrbr, message msg) |
observer & | addEvent (message::EVENT event) |
bool | subscribed () const |
void | addToSubscriber (const subscriber *subscrbr, message msg) |
bool | addToSubscriber (const subscriber &subscriber) |
virtual bool | hearChanges (real t, real dt, uint32 iter, const message &msg, const anyList &varList)=0 |
Static Public Member Functions | |
static constexpr auto | numEvents () |
Private Member Functions | |
const subscriber * | changeSubscriber (const subscriber *newSub) |
void | invalidateSubscriber () |
Private Attributes | |
const subscriber * | subscriber_ = nullptr |
pointer to subscriber More... | |
message | message_ |
list of events in the message More... | |
friend | subscriber |
Definition at line 33 of file observer.hpp.
Definition at line 31 of file observer.cpp.
observer | ( | const subscriber * | subscrbr, |
message | msg | ||
) |
Definition at line 36 of file observer.cpp.
|
virtual |
Definition at line 44 of file observer.cpp.
|
private |
Definition at line 24 of file observer.cpp.
References observer::subscriber_.
|
inlineprivate |
Definition at line 48 of file observer.hpp.
References observer::subscriber_.
void subscribe | ( | const subscriber * | subscrbr, |
message | msg | ||
) |
pFlow::observer & addEvent | ( | message::EVENT | event | ) |
Definition at line 51 of file observer.cpp.
References pFlow::endl(), fatalErrorInFunction, and fatalExit.
Referenced by periodicBoundaryField< T, MemorySpace >::periodicBoundaryField().
|
inline |
Definition at line 71 of file observer.hpp.
References observer::subscriber_.
void addToSubscriber | ( | const subscriber * | subscrbr, |
message | msg | ||
) |
Definition at line 67 of file observer.cpp.
References pFlow::endl(), fatalErrorInFunction, and fatalExit.
Referenced by particles::particles().
bool addToSubscriber | ( | const subscriber & | subscriber | ) |
Definition at line 90 of file observer.cpp.
References subscriber::subscribe().
|
inlinestaticconstexpr |
Definition at line 85 of file observer.hpp.
References message::numEvents().
|
pure virtual |
Implemented in internalField< T, MemorySpace >, internalField< pFlow::VectorSingle, pFlow::AB5History >, internalField< pFlow::VectorSingle, pFlow::AB4History >, internalField< real, void >, internalField< uint32, void >, internalField< T, void >, internalField< pFlow::VectorSingle, pFlow::AB3History >, internalField< realx3, void >, sphereParticles, grainParticles, triSurfaceField< T, MemorySpace >, triSurfaceField< realx3 >, triSurfaceField< uint32 >, boundaryGrainInteraction< contactForceModel, geometryMotionModel >, boundarySphereInteraction< contactForceModel, geometryMotionModel >, grainInteraction< contactForceModel, geometryMotionModel, contactListType >, sphereInteraction< contactForceModel, geometryMotionModel, contactListType >, boundaryField< T, MemorySpace >, boundaryField< T, void >, boundaryContactSearch, particleIdHandler, exitBoundaryField< T, MemorySpace >, periodicBoundaryField< T, MemorySpace >, reflectiveBoundaryField< T, MemorySpace >, boundaryIntegration, boundaryGrainParticles, and boundarySphereParticles.
|
private |
pointer to subscriber
Definition at line 39 of file observer.hpp.
Referenced by observer::changeSubscriber(), observer::invalidateSubscriber(), and observer::subscribed().
|
private |
list of events in the message
Definition at line 42 of file observer.hpp.
|
private |
Definition at line 44 of file observer.hpp.