MySQL 9.1.0
Source Code Documentation
Copy_field Class Reference

#include <field.h>

Public Member Functions

 Copy_field ()=default
 
 Copy_field (Field *to, Field *from)
 
void set (Field *to, Field *from)
 
void invoke_do_copy (bool reverse=false)
 
void invoke_do_copy2 (const Field *from_field, Field *to_field)
 
Fieldfrom_field () const
 
Fieldto_field () const
 

Public Attributes

String tmp
 

Private Types

using Copy_func = void(Copy_field *, const Field *, Field *)
 Convenience definition of a copy function returned by get_copy_func. More...
 

Private Member Functions

Copy_funcget_copy_func ()
 

Private Attributes

void(* m_do_copy )(Copy_field *, const Field *, Field *)
 
void(* m_do_copy2 )(Copy_field *, const Field *, Field *)
 
Fieldm_from_field {nullptr}
 
Fieldm_to_field {nullptr}
 

Member Typedef Documentation

◆ Copy_func

using Copy_field::Copy_func = void(Copy_field *, const Field *, Field *)
private

Convenience definition of a copy function returned by get_copy_func.

The parameters are: Copy_field* Instance of this class. Used for accessing 'tmp' and calling invoke_do_copy2(). const Field* Field copying from. Field* Field copying to. Note that 'from' is 'm_to_field' if invoke_do_copy() is called with 'reverse' = true.

Constructor & Destructor Documentation

◆ Copy_field() [1/2]

Copy_field::Copy_field ( )
default

◆ Copy_field() [2/2]

Copy_field::Copy_field ( Field to,
Field from 
)
inline

Member Function Documentation

◆ from_field()

Field * Copy_field::from_field ( ) const
inline

◆ get_copy_func()

Copy_field::Copy_func * Copy_field::get_copy_func ( )
private

◆ invoke_do_copy()

void Copy_field::invoke_do_copy ( bool  reverse = false)

◆ invoke_do_copy2()

void Copy_field::invoke_do_copy2 ( const Field from_field,
Field to_field 
)

◆ set()

void Copy_field::set ( Field to,
Field from 
)

◆ to_field()

Field * Copy_field::to_field ( ) const
inline

Member Data Documentation

◆ m_do_copy

void(* Copy_field::m_do_copy) (Copy_field *, const Field *, Field *)
private

◆ m_do_copy2

void(* Copy_field::m_do_copy2) (Copy_field *, const Field *, Field *)
private

◆ m_from_field

Field* Copy_field::m_from_field {nullptr}
private

◆ m_to_field

Field* Copy_field::m_to_field {nullptr}
private

◆ tmp

String Copy_field::tmp

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