MySQL 9.1.0
Source Code Documentation
classic_protocol::borrowable::session_track::Field< Borrowed > Class Template Reference

Field of a session-track array. More...

#include <classic_protocol_session_track.h>

Public Types

using string_type = std::conditional_t< Borrowed, std::string_view, std::string >
 

Public Member Functions

constexpr Field (uint8_t type, string_type data)
 
constexpr uint8_t type () const noexcept
 
constexpr string_type data () const noexcept
 

Private Attributes

uint8_t type_
 
string_type data_
 

Detailed Description

template<bool Borrowed>
class classic_protocol::borrowable::session_track::Field< Borrowed >

Field of a session-track array.

used in server::Ok and server::Eof

Member Typedef Documentation

◆ string_type

template<bool Borrowed>
using classic_protocol::borrowable::session_track::Field< Borrowed >::string_type = std::conditional_t<Borrowed, std::string_view, std::string>

Constructor & Destructor Documentation

◆ Field()

template<bool Borrowed>
constexpr classic_protocol::borrowable::session_track::Field< Borrowed >::Field ( uint8_t  type,
string_type  data 
)
inlineconstexpr

Member Function Documentation

◆ data()

template<bool Borrowed>
constexpr string_type classic_protocol::borrowable::session_track::Field< Borrowed >::data ( ) const
inlineconstexprnoexcept

◆ type()

template<bool Borrowed>
constexpr uint8_t classic_protocol::borrowable::session_track::Field< Borrowed >::type ( ) const
inlineconstexprnoexcept

Member Data Documentation

◆ data_

template<bool Borrowed>
string_type classic_protocol::borrowable::session_track::Field< Borrowed >::data_
private

◆ type_

template<bool Borrowed>
uint8_t classic_protocol::borrowable::session_track::Field< Borrowed >::type_
private

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