RMVL  2.5.0-dev
Robotic Manipulation and Vision Library
载入中...
搜索中...
未找到
rm::lpss::async::Service< SrvType > 模板类 参考final

异步服务端代理 更多...

#include <rmvl/lpss/node.hpp>

类 rm::lpss::async::Service< SrvType > 继承关系图:
rm::lpss::async::Service< SrvType > 的协作图:

Public 类型

using ptr = std::shared_ptr<Service<SrvType>>
using Request = typename SrvType::Request
using Response = typename SrvType::Response
using Callback = std::function<Response(const Request &)>

Public 成员函数

bool invalid () const noexcept
 判断服务端是否无效

友元

class Node

详细描述

template<typename SrvType>
class rm::lpss::async::Service< SrvType >

异步服务端代理

模板参数
SrvType服务类型,需提供 RequestResponse 类型别名

成员类型定义说明

◆ Callback

template<typename SrvType>
using rm::lpss::async::Service< SrvType >::Callback = std::function<Response(const Request &)>

◆ ptr

template<typename SrvType>
using rm::lpss::async::Service< SrvType >::ptr = std::shared_ptr<Service<SrvType>>

◆ Request

template<typename SrvType>
using rm::lpss::async::Service< SrvType >::Request = typename SrvType::Request

◆ Response

template<typename SrvType>
using rm::lpss::async::Service< SrvType >::Response = typename SrvType::Response

成员函数说明

◆ invalid()

template<typename SrvType>
bool rm::lpss::async::Service< SrvType >::invalid ( ) const
inlinenoexcept

判断服务端是否无效

◆ Node

template<typename SrvType>
friend class Node
friend