open62541pp 0.15.0
C++ wrapper of open62541
|
#include <contextmap.hpp>
Check if an object as a boolean stale
flag.
Context objects e.g. for MonitoredItems may have a lifetime and a callback might be called when the item is deleted. So the context objects should be able to delete itself. The context object passed to the callback as a parameter but the callback has no access to the container owning this context object. Each context object could carry a reference to its owning container and delete itself, but this can be problematic... Instead a simple flag stale
can be set if the item is deleted and should be removed from its container, the ContextMap
.
Definition at line 22 of file contextmap.hpp.