MySQL 8.4.2
Source Code Documentation
mysql::serialization::Field_wrapper< Field_type, defined_field_size > Class Template Reference

Wrapper for fields to hold field reference and user-defined, compile-time field size. More...

#include <field_wrapper.h>

Public Types

using value_type = Field_type
 
using Field_ref_type = Field_type &
 
using Field_ref_wrapper_type = std::reference_wrapper< Field_type >
 

Public Member Functions

 Field_wrapper (Field_type &field_reference)
 Constructor. More...
 
Field_ref_type get ()
 field bare reference accessor More...
 

Static Public Attributes

static constexpr Field_size value_size = defined_field_size
 

Private Attributes

Field_ref_wrapper_type m_ref
 Internal reference. More...
 

Detailed Description

template<typename Field_type, Field_size defined_field_size>
class mysql::serialization::Field_wrapper< Field_type, defined_field_size >

Wrapper for fields to hold field reference and user-defined, compile-time field size.

Note
This is created in order to pass information about field size to the Archive

Member Typedef Documentation

◆ Field_ref_type

template<typename Field_type , Field_size defined_field_size>
using mysql::serialization::Field_wrapper< Field_type, defined_field_size >::Field_ref_type = Field_type &

◆ Field_ref_wrapper_type

template<typename Field_type , Field_size defined_field_size>
using mysql::serialization::Field_wrapper< Field_type, defined_field_size >::Field_ref_wrapper_type = std::reference_wrapper<Field_type>

◆ value_type

template<typename Field_type , Field_size defined_field_size>
using mysql::serialization::Field_wrapper< Field_type, defined_field_size >::value_type = Field_type

Constructor & Destructor Documentation

◆ Field_wrapper()

template<typename Field_type , Field_size defined_field_size>
mysql::serialization::Field_wrapper< Field_type, defined_field_size >::Field_wrapper ( Field_type field_reference)
inline

Constructor.

Parameters
field_referenceReference to field

Member Function Documentation

◆ get()

template<typename Field_type , Field_size defined_field_size>
Field_ref_type mysql::serialization::Field_wrapper< Field_type, defined_field_size >::get ( )
inline

field bare reference accessor

Returns
Reference to Field_type object

Member Data Documentation

◆ m_ref

template<typename Field_type , Field_size defined_field_size>
Field_ref_wrapper_type mysql::serialization::Field_wrapper< Field_type, defined_field_size >::m_ref
private

Internal reference.

◆ value_size

template<typename Field_type , Field_size defined_field_size>
constexpr Field_size mysql::serialization::Field_wrapper< Field_type, defined_field_size >::value_size = defined_field_size
staticconstexpr

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