emlabcpp
modern opinionated embedded C++ library
|
Protocol library has custom type that represents message, however this is just simple overaly over std::array that remembers how many bytes are used. More...
#include <message.h>
Public Types | |
using | value_type = std::byte |
using | reference = std::byte & |
using | pointer = std::byte * |
using | const_pointer = std::byte const * |
using | iterator = std::byte * |
using | const_iterator = std::byte const * |
using | size_type = std::size_t |
Public Member Functions | |
constexpr | message ()=default |
constexpr | message (size_type const n) noexcept |
constexpr | message (view< const_iterator > const &v) noexcept |
template<size_type M> | |
constexpr | message (message< M > const &other) noexcept |
template<size_type M> | |
constexpr | message (std::array< value_type, M > const &inpt) noexcept |
template<std::convertible_to< uint8_t >... Ts> | |
constexpr | message (Ts... inpt) |
template<size_type M> | |
constexpr message & | operator= (message< M > const &other) noexcept |
constexpr const_pointer | data () const noexcept |
constexpr pointer | data () noexcept |
constexpr size_type | size () const noexcept |
constexpr value_type | front () const noexcept |
constexpr reference | front () noexcept |
constexpr value_type | back () const noexcept |
constexpr reference | back () noexcept |
constexpr const_iterator | begin () const noexcept |
constexpr iterator | begin () noexcept |
constexpr const_iterator | end () const noexcept |
constexpr iterator | end () noexcept |
value_type | operator[] (size_type const i) const noexcept |
reference | operator[] (size_type const i) noexcept |
void | resize (size_type const n) noexcept |
Static Public Attributes | |
static constexpr size_type | capacity = N |
Friends | |
auto | operator== (message const &lh, message const &rh) noexcept |
Protocol library has custom type that represents message, however this is just simple overaly over std::array that remembers how many bytes are used.
using emlabcpp::protocol::message< N >::const_iterator = std::byte const* |
using emlabcpp::protocol::message< N >::const_pointer = std::byte const* |
using emlabcpp::protocol::message< N >::iterator = std::byte* |
using emlabcpp::protocol::message< N >::pointer = std::byte* |
using emlabcpp::protocol::message< N >::reference = std::byte& |
using emlabcpp::protocol::message< N >::size_type = std::size_t |
using emlabcpp::protocol::message< N >::value_type = std::byte |
|
constexprdefault |
|
inlineexplicitconstexprnoexcept |
|
inlineexplicitconstexprnoexcept |
References emlabcpp::copy(), and emlabcpp::data().
|
inlineexplicitconstexprnoexcept |
|
inlineexplicitconstexprnoexcept |
|
inlineexplicitconstexpr |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
References emlabcpp::copy(), and emlabcpp::data().
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlineconstexprnoexcept |
|
staticconstexpr |