mqtt_cpp
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
MQTT_NS::v5::property::detail::n_bytes_property< N > Struct Template Reference

#include <property.hpp>

Public Member Functions

 n_bytes_property (property::id id)
 
template<typename It >
 n_bytes_property (property::id id, It b, It e)
 
 n_bytes_property (property::id id, boost::container::static_vector< char, N > 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...
 

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, N > buf_
 

Static Public Attributes

static constexpr ostream_format const of_ = ostream_format::direct
 

Constructor & Destructor Documentation

◆ n_bytes_property() [1/3]

template<std::size_t N>
MQTT_NS::v5::property::detail::n_bytes_property< N >::n_bytes_property ( property::id  id)
inlineexplicit

◆ n_bytes_property() [2/3]

template<std::size_t N>
template<typename It >
MQTT_NS::v5::property::detail::n_bytes_property< N >::n_bytes_property ( property::id  id,
It  b,
It  e 
)
inline

◆ n_bytes_property() [3/3]

template<std::size_t N>
MQTT_NS::v5::property::detail::n_bytes_property< N >::n_bytes_property ( property::id  id,
boost::container::static_vector< char, N >  buf 
)
inline

Member Function Documentation

◆ add_const_buffer_sequence()

template<std::size_t N>
void MQTT_NS::v5::property::detail::n_bytes_property< N >::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<std::size_t N>
template<typename It >
void MQTT_NS::v5::property::detail::n_bytes_property< N >::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()

template<std::size_t N>
property::id MQTT_NS::v5::property::detail::n_bytes_property< N >::id ( ) const
inline

Get property::id.

Returns
id

◆ num_of_const_buffer_sequence()

template<std::size_t N>
static constexpr std::size_t MQTT_NS::v5::property::detail::n_bytes_property< N >::num_of_const_buffer_sequence ( )
inlinestaticconstexpr

Get number of element of const_buffer_sequence.

Returns
number of element of const_buffer_sequence

◆ size()

template<std::size_t N>
std::size_t MQTT_NS::v5::property::detail::n_bytes_property< N >::size ( ) const
inline

Get whole size of sequence.

Returns
whole size

Member Data Documentation

◆ buf_

template<std::size_t N>
boost::container::static_vector<char, N> MQTT_NS::v5::property::detail::n_bytes_property< N >::buf_

◆ id_

◆ of_

template<std::size_t N>
constexpr ostream_format const MQTT_NS::v5::property::detail::n_bytes_property< N >::of_ = ostream_format::direct
staticconstexpr

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