mqtt_cpp
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
MQTT_NS::v5::property::detail::binary_property Struct Reference

#include <property.hpp>

Inheritance diagram for MQTT_NS::v5::property::detail::binary_property:
Inheritance graph
[legend]
Collaboration diagram for MQTT_NS::v5::property::detail::binary_property:
Collaboration graph
[legend]

Public Member Functions

 binary_property (property::id id, buffer buf)
 
void add_const_buffer_sequence (std::vector< as::const_buffer > &v) const
 Add const buffer sequence into the given buffer. More...
 
template<typename It >
void fill (It b, It e) const
 Copy the internal information to the range between b and e it is for boost asio APIs. More...
 
property::id id () const
 Get property::id. More...
 
std::size_t size () const
 Get whole size of sequence. More...
 
constexpr buffer const & val () const
 

Static Public Member Functions

static constexpr std::size_t num_of_const_buffer_sequence ()
 Get number of element of const_buffer_sequence. More...
 

Public Attributes

property::id id_
 
buffer buf_
 
boost::container::static_vector< char, 2 > length_
 

Static Public Attributes

static constexpr ostream_format const of_ = ostream_format::direct
 

Constructor & Destructor Documentation

◆ binary_property()

MQTT_NS::v5::property::detail::binary_property::binary_property ( property::id  id,
buffer  buf 
)
inline

Member Function Documentation

◆ add_const_buffer_sequence()

void MQTT_NS::v5::property::detail::binary_property::add_const_buffer_sequence ( std::vector< as::const_buffer > &  v) const
inline

Add const buffer sequence into the given buffer.

Parameters
vbuffer to add

◆ fill()

template<typename It >
void MQTT_NS::v5::property::detail::binary_property::fill ( It  b,
It  e 
) const
inline

Copy the internal information to the range between b and e it is for boost asio APIs.

Parameters
bbegin of the range to fill
eend of the range to fill

◆ id()

property::id MQTT_NS::v5::property::detail::binary_property::id ( ) const
inline

Get property::id.

Returns
id

◆ num_of_const_buffer_sequence()

static constexpr std::size_t MQTT_NS::v5::property::detail::binary_property::num_of_const_buffer_sequence ( )
inlinestaticconstexpr

Get number of element of const_buffer_sequence.

Returns
number of element of const_buffer_sequence

◆ size()

std::size_t MQTT_NS::v5::property::detail::binary_property::size ( ) const
inline

Get whole size of sequence.

Returns
whole size

◆ val()

constexpr buffer const& MQTT_NS::v5::property::detail::binary_property::val ( ) const
inlineconstexpr

Member Data Documentation

◆ buf_

buffer MQTT_NS::v5::property::detail::binary_property::buf_

◆ id_

property::id MQTT_NS::v5::property::detail::binary_property::id_

◆ length_

boost::container::static_vector<char, 2> MQTT_NS::v5::property::detail::binary_property::length_

◆ of_

constexpr ostream_format const MQTT_NS::v5::property::detail::binary_property::of_ = ostream_format::direct
staticconstexpr

The documentation for this struct was generated from the following file: