CARLA
 
载入中...
搜索中...
未找到
Public 成员函数 | 静态 Public 成员函数 | Private 成员函数 | Private 属性 | 所有成员列表
carla::streaming::detail::tcp::MessageTmpl< MaxNumberOfBuffers > 模板类 参考

Serialization of a set of buffers to be sent over a TCP socket as a single message. 更多...

#include <Message.h>

+ 类 carla::streaming::detail::tcp::MessageTmpl< MaxNumberOfBuffers > 继承关系图:
+ carla::streaming::detail::tcp::MessageTmpl< MaxNumberOfBuffers > 的协作图:

Public 成员函数

bool empty () const noexcept
 
auto GetBufferSequence () const
 
template<typename... Buffers>
 MessageTmpl (SharedBufferView buf, Buffers... buffers)
 
auto size () const noexcept
 Size in bytes of the message excluding the header.
 

静态 Public 成员函数

static constexpr size_t max_size ()
 

Private 成员函数

template<typename... Buffers>
 MessageTmpl (size_t size, SharedBufferView buffer, Buffers... buffers)
 
 MessageTmpl (size_t)
 
- Private 成员函数 继承自 carla::NonCopyable
 NonCopyable ()=default
 
 NonCopyable (const NonCopyable &)=delete
 
 NonCopyable (NonCopyable &&)=delete
 
NonCopyableoperator= (const NonCopyable &)=delete
 
NonCopyableoperator= (NonCopyable &&)=delete
 

Private 属性

std::array< boost::asio::const_buffer, MaxNumberOfBuffers+1u > _buffer_views
 
std::array< SharedBufferView, MaxNumberOfBuffers > _buffers
 
message_size_type _number_of_buffers = 0u
 
message_size_type _total_size = 0u
 

详细描述

template<size_t MaxNumberOfBuffers>
class carla::streaming::detail::tcp::MessageTmpl< MaxNumberOfBuffers >

Serialization of a set of buffers to be sent over a TCP socket as a single message.

Template paramenter MaxNumberOfBuffers imposes a compile-time limit on the maximum number of buffers that can be included in a single message.

在文件 Message.h34 行定义.

构造及析构函数说明

◆ MessageTmpl() [1/3]

template<size_t MaxNumberOfBuffers>
carla::streaming::detail::tcp::MessageTmpl< MaxNumberOfBuffers >::MessageTmpl ( size_t )
inlineprivate

在文件 Message.h45 行定义.

◆ MessageTmpl() [2/3]

template<size_t MaxNumberOfBuffers>
template<typename... Buffers>
carla::streaming::detail::tcp::MessageTmpl< MaxNumberOfBuffers >::MessageTmpl ( size_t size,
SharedBufferView buffer,
Buffers... buffers )
inlineprivate

◆ MessageTmpl() [3/3]

template<size_t MaxNumberOfBuffers>
template<typename... Buffers>
carla::streaming::detail::tcp::MessageTmpl< MaxNumberOfBuffers >::MessageTmpl ( SharedBufferView buf,
Buffers... buffers )
inline

在文件 Message.h59 行定义.

引用了 carla::streaming::detail::tcp::MessageTmpl< MaxNumberOfBuffers >::_buffer_views, carla::streaming::detail::tcp::MessageTmpl< MaxNumberOfBuffers >::_total_size , 以及 carla::streaming::detail::tcp::MessageTmpl< MaxNumberOfBuffers >::max_size().

+ 函数调用图:

成员函数说明

◆ empty()

template<size_t MaxNumberOfBuffers>
bool carla::streaming::detail::tcp::MessageTmpl< MaxNumberOfBuffers >::empty ( ) const
inlinenoexcept

在文件 Message.h70 行定义.

引用了 carla::streaming::detail::tcp::MessageTmpl< MaxNumberOfBuffers >::size().

+ 函数调用图:

◆ GetBufferSequence()

template<size_t MaxNumberOfBuffers>
auto carla::streaming::detail::tcp::MessageTmpl< MaxNumberOfBuffers >::GetBufferSequence ( ) const
inline

在文件 Message.h74 行定义.

引用了 carla::streaming::detail::tcp::MessageTmpl< MaxNumberOfBuffers >::_buffer_views, carla::streaming::detail::tcp::MessageTmpl< MaxNumberOfBuffers >::_number_of_buffers , 以及 carla::MakeListView().

+ 函数调用图:

◆ max_size()

template<size_t MaxNumberOfBuffers>
static constexpr size_t carla::streaming::detail::tcp::MessageTmpl< MaxNumberOfBuffers >::max_size ( )
inlinestaticconstexpr

在文件 Message.h39 行定义.

被这些函数引用 carla::streaming::detail::tcp::MessageTmpl< MaxNumberOfBuffers >::MessageTmpl().

+ 这是这个函数的调用关系图:

◆ size()

template<size_t MaxNumberOfBuffers>
auto carla::streaming::detail::tcp::MessageTmpl< MaxNumberOfBuffers >::size ( ) const
inlinenoexcept

Size in bytes of the message excluding the header.

在文件 Message.h66 行定义.

引用了 carla::streaming::detail::tcp::MessageTmpl< MaxNumberOfBuffers >::_total_size.

被这些函数引用 carla::streaming::detail::tcp::MessageTmpl< MaxNumberOfBuffers >::empty() , 以及 carla::streaming::detail::tcp::MessageTmpl< MaxNumberOfBuffers >::MessageTmpl().

+ 这是这个函数的调用关系图:

类成员变量说明

◆ _buffer_views

template<size_t MaxNumberOfBuffers>
std::array<boost::asio::const_buffer, MaxNumberOfBuffers + 1u> carla::streaming::detail::tcp::MessageTmpl< MaxNumberOfBuffers >::_buffer_views
private

◆ _buffers

template<size_t MaxNumberOfBuffers>
std::array<SharedBufferView, MaxNumberOfBuffers> carla::streaming::detail::tcp::MessageTmpl< MaxNumberOfBuffers >::_buffers
private

◆ _number_of_buffers

template<size_t MaxNumberOfBuffers>
message_size_type carla::streaming::detail::tcp::MessageTmpl< MaxNumberOfBuffers >::_number_of_buffers = 0u
private

◆ _total_size

template<size_t MaxNumberOfBuffers>
message_size_type carla::streaming::detail::tcp::MessageTmpl< MaxNumberOfBuffers >::_total_size = 0u
private

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