mqtt_cpp
Classes | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
MQTT_NS::v5::property::user_property Class Reference

#include <property.hpp>

Public Member Functions

 user_property (buffer key, buffer val, bool key_already_checked=false, bool val_already_checked=false)
 
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
 
property::id id () const
 Get property::id. More...
 
std::size_t size () const
 Get whole size of sequence. More...
 
constexpr buffer const & key () const
 
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...
 

Static Public Attributes

static constexpr detail::ostream_format const of_ = detail::ostream_format::key_val
 

Constructor & Destructor Documentation

◆ user_property()

MQTT_NS::v5::property::user_property::user_property ( buffer  key,
buffer  val,
bool  key_already_checked = false,
bool  val_already_checked = false 
)
inline

Member Function Documentation

◆ add_const_buffer_sequence()

void MQTT_NS::v5::property::user_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::user_property::fill ( It  b,
It  e 
) const
inline

◆ id()

property::id MQTT_NS::v5::property::user_property::id ( ) const
inline

Get property::id.

Returns
id

◆ key()

constexpr buffer const& MQTT_NS::v5::property::user_property::key ( ) const
inlineconstexpr

◆ num_of_const_buffer_sequence()

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

Get whole size of sequence.

Returns
whole size

◆ val()

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

Member Data Documentation

◆ of_

constexpr detail::ostream_format const MQTT_NS::v5::property::user_property::of_ = detail::ostream_format::key_val
staticconstexpr

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