ML Reference
|
Class to notify registered instances about ML changes. More...
#include "mlUtilsSystem.h"
Go to the source code of this file.
Classes | |
class | ml::Notify |
Class to handle all ML Notify prints, errors and warnings. More... | |
Namespaces | |
namespace | ml |
Define the namespace name like in the ML. Default is | |
namespace | std |
Provide trigonometric etc. | |
Functions | |
ML_UTILS_EXPORT ostream & | std::operator<< (ostream &s, const ml::Notify ¬ify) |
Overloading the operator "<<" for stream output of Notify objects. | |
Variables | |
ML_UTILS_EXPORT Notify | ml::MLNotify |
Singleton which contains all registered callback functions of the ML. |
Class to notify registered instances about ML changes.
This is a class where any instance can register itself with a callback. The callback will be called if any state flag in the ML changes. So these instances can update themselves if the ML changes. Note that the notify callbacks maybe called from within any environment. So critical sections (to avoid parallel execution) could be active or field notifications could be disabled. So e.g., updating fields within such a callback may fail or critical sections could block. Anyway, the caller should try to avoid that in general.
Definition in file mlNotify.h.