MySQL 8.3.0
Source Code Documentation
classic_protocol::CodecSimpleCommand< Base, ValueType > Class Template Reference

CRTP base for client-side commands that are encoded as a single byte. More...

#include <classic_protocol_codec_message.h>

Inheritance diagram for classic_protocol::CodecSimpleCommand< Base, ValueType >:
[legend]

Public Types

using __base = impl::EncodeBase< CodecSimpleCommand< Base, ValueType > >
 

Public Member Functions

constexpr CodecSimpleCommand (capabilities::value_type caps)
 
- Public Member Functions inherited from classic_protocol::impl::EncodeBase< CodecSimpleCommand< Base, ValueType > >
constexpr EncodeBase (capabilities::value_type caps)
 
constexpr size_t size () const noexcept
 
stdx::expected< size_t, std::error_code > encode (net::mutable_buffer buffer) const
 
constexpr capabilities::value_type caps () const noexcept
 

Static Public Member Functions

static constexpr size_t max_size () noexcept
 
static stdx::expected< std::pair< size_t, ValueType >, std::error_code > decode (const net::const_buffer &buffer, capabilities::value_type caps)
 

Public Attributes

friend __base
 

Private Member Functions

template<class Accumulator >
constexpr auto accumulate_fields (Accumulator &&accu) const
 

Detailed Description

template<class Base, class ValueType>
class classic_protocol::CodecSimpleCommand< Base, ValueType >

CRTP base for client-side commands that are encoded as a single byte.

Member Typedef Documentation

◆ __base

template<class Base , class ValueType >
using classic_protocol::CodecSimpleCommand< Base, ValueType >::__base = impl::EncodeBase<CodecSimpleCommand<Base, ValueType> >

Constructor & Destructor Documentation

◆ CodecSimpleCommand()

template<class Base , class ValueType >
constexpr classic_protocol::CodecSimpleCommand< Base, ValueType >::CodecSimpleCommand ( capabilities::value_type  caps)
inlineconstexpr

Member Function Documentation

◆ accumulate_fields()

template<class Base , class ValueType >
template<class Accumulator >
constexpr auto classic_protocol::CodecSimpleCommand< Base, ValueType >::accumulate_fields ( Accumulator &&  accu) const
inlineconstexprprivate

◆ decode()

template<class Base , class ValueType >
static stdx::expected< std::pair< size_t, ValueType >, std::error_code > classic_protocol::CodecSimpleCommand< Base, ValueType >::decode ( const net::const_buffer buffer,
capabilities::value_type  caps 
)
inlinestatic

◆ max_size()

template<class Base , class ValueType >
static constexpr size_t classic_protocol::CodecSimpleCommand< Base, ValueType >::max_size ( )
inlinestaticconstexprnoexcept

Member Data Documentation

◆ __base

template<class Base , class ValueType >
friend classic_protocol::CodecSimpleCommand< Base, ValueType >::__base

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