VLink  2.0.0
A high-performance communication middleware
vlink::AbstractNode类 参考

Tiny mix-in that exposes the backend-native handle behind a node. 更多...

#include <node_impl.h>

类 vlink::AbstractNode 继承关系图:
vlink::AbstractNode 的协作图:

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.

注解
The base implementation returns an std::any holding nullptr; the caller must std::any_cast to the expected backend type.

构造及析构函数说明

◆ AbstractNode()

vlink::AbstractNode::AbstractNode ( )
protected

◆ ~AbstractNode()

virtual vlink::AbstractNode::~AbstractNode ( )
protectedvirtual

成员函数说明

◆ get_native_handle()

virtual std::any vlink::AbstractNode::get_native_handle ( ) const
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.

返回
Backend handle, or nullptr-bearing std::any in the base.

该类的文档由以下文件生成: