Template Class RTEMbufElement

Inheritance Relationships

Base Type

Template Parameter Order

  1. typename Elem

  2. MbufType type

Class Documentation

template<typename Elem, MbufType type = MbufType::Raw>
class RTEMbufElement : private _detail::MbufElementHelper<Elem, MbufType::Raw>

Public Types

using value_type = typename std::conditional<type == MbufType::Raw, Elem, RTEMbuf<Elem>>::type
using pointer = value_type*
using double_pointer = pointer*
using reference = value_type&
using const_reference = std::add_const_t<reference>

Public Functions

inline ~RTEMbufElement()
RTEMbufElement(const RTEMbufElement&) = delete
RTEMbufElement &operator=(const RTEMbufElement&) = delete
inline RTEMbufElement(RTEMbufElement &&other)
inline RTEMbufElement &operator=(RTEMbufElement &&other)
inline operator bool() const
inline void release()
inline reference get()
inline const_reference get() const
inline Elem &get_data()
inline Elem &get_data()
inline const Elem &get_data() const
inline const Elem &get_data() const

Public Static Functions

static inline tl::expected<RTEMbufElement, int> init(RTEMempool<Elem, type> &mempool)
static inline tl::expected<RTEMbufElement, int> init(RTEMempool<Elem, type> &mempool, Elem &&elem)