|
VLink
2.0.0
A high-performance communication middleware
|
Tiny mix-in that exposes the backend-native handle behind a node. 更多...
#include <node_impl.h>
Public 成员函数 | |
| virtual std::any | get_native_handle () const |
Returns the backend-native handle wrapped in an std::any. 更多... | |
Protected 成员函数 | |
| AbstractNode () | |
| virtual | ~AbstractNode () |
Tiny mix-in that exposes the backend-native handle behind a node.
Transport backends commonly inherit from both AbstractNode and the matching NodeImpl subclass. get_native_handle() returns an std::any wrapping the native object (for instance a DDS DataWriter pointer) so advanced users can interact with backend internals without leaking transport types through the rest of the VLink API.
std::any holding nullptr; the caller must std::any_cast to the expected backend type.
|
protected |
|
protectedvirtual |
|
virtual |
Returns the backend-native handle wrapped in an std::any.
Backends override this method to expose, for example, a DDS DataWriter or DataReader pointer. Callers must std::any_cast the result.
nullptr-bearing std::any in the base.