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

#include <property.hpp>

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

Public Member Functions

 variable_property (property::id id, std::size_t value)
 
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 std::size_t 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_
 
boost::container::static_vector< char, 4 > value_
 

Static Public Attributes

static constexpr ostream_format const of_ = ostream_format::direct
 

Constructor & Destructor Documentation

◆ variable_property()

MQTT_NS::v5::property::detail::variable_property::variable_property ( property::id  id,
std::size_t  value 
)
inline

Member Function Documentation

◆ add_const_buffer_sequence()

void MQTT_NS::v5::property::detail::variable_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::variable_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::variable_property::id ( ) const
inline

Get property::id.

Returns
id

◆ num_of_const_buffer_sequence()

static constexpr std::size_t MQTT_NS::v5::property::detail::variable_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::variable_property::size ( ) const
inline

Get whole size of sequence.

Returns
whole size

◆ val()

constexpr std::size_t MQTT_NS::v5::property::detail::variable_property::val ( ) const
inlineconstexpr

Member Data Documentation

◆ id_

property::id MQTT_NS::v5::property::detail::variable_property::id_

◆ of_

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

◆ value_

boost::container::static_vector<char, 4> MQTT_NS::v5::property::detail::variable_property::value_

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