VLink 2.0.0
A high-performance communication middleware
载入中...
搜索中...
未找到
vlink::AbstractNode类 参考

Minimal interface for accessing the underlying native transport handle. 更多...

#include <node_impl.h>

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

Public 成员函数

virtual std::any get_native_handle () const
 Returns the underlying native transport handle wrapped in std::any.

Protected 成员函数

 AbstractNode ()
virtual ~AbstractNode ()

详细描述

Minimal interface for accessing the underlying native transport handle.

Concrete transport backends (e.g. DdsPublisherImpl) inherit from both AbstractNode and their corresponding NodeImpl subclass. get_native_handle() returns an std::any wrapping the backend-specific handle, allowing advanced users to access transport internals without breaking the VLink API boundary.

注解
The base implementation returns an empty std::any.

构造及析构函数说明

◆ 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 underlying native transport handle wrapped in std::any.

Transport-specific subclasses override this to return, for example, a DDS DataWriter or DataReader pointer. Callers must std::any_cast to the correct type. The base implementation returns an empty std::any.

返回
Backend-specific handle, or empty std::any in the base class.

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