open62541pp 0.15.0
C++ wrapper of open62541
Loading...
Searching...
No Matches
opcua::detail::IsStaleable< T, typename > Struct Template Reference

#include <contextmap.hpp>

Inheritance diagram for opcua::detail::IsStaleable< T, typename >:
[legend]

Detailed Description

template<typename T, typename = void>
struct opcua::detail::IsStaleable< T, typename >

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.