MySQL  8.0.19
Source Code Documentation
Sys_var_integer< T, ARGT, SHOWT, SIGNED > Class Template Reference

Sys_var_integer template is used to generate Sys_var_* classes for variables that represent the value as a signed or unsigned integer. More...

#include <sys_vars.h>

Inheritance diagram for Sys_var_integer< T, ARGT, SHOWT, SIGNED >:
Sys_var_keycache Sys_var_max_user_conn Sys_var_session_special

Public Member Functions

 Sys_var_integer (const char *name_arg, const char *comment, int flag_args, ptrdiff_t off, size_t size, CMD_LINE getopt, T min_val, T max_val, T def_val, uint block_size, PolyLock *lock=0, enum binlog_status_enum binlog_status_arg=VARIABLE_NOT_IN_BINLOG, on_check_function on_check_func=0, on_update_function on_update_func=0, const char *substitute=0, int parse_flag=PARSE_NORMAL)
 
bool do_check (THD *thd, set_var *var)
 
bool session_update (THD *thd, set_var *var)
 
bool global_update (THD *, set_var *var)
 
bool check_update_type (Item_result type)
 
void session_save_default (THD *thd, set_var *var)
 
void global_save_default (THD *, set_var *var)
 
void saved_value_to_string (THD *, set_var *var, char *def_val)
 

Private Member Functions

T * max_var_ptr ()
 

Detailed Description

template<typename T, ulong ARGT, enum enum_mysql_show_type SHOWT, bool SIGNED>
class Sys_var_integer< T, ARGT, SHOWT, SIGNED >

Sys_var_integer template is used to generate Sys_var_* classes for variables that represent the value as a signed or unsigned integer.

They are Sys_var_uint, Sys_var_ulong, Sys_var_harows, Sys_var_ulonglong, and Sys_var_long.

An integer variable has a minimal and maximal values, and a "block_size" (any valid value of the variable must be divisible by the block_size).

Class specific constructor arguments: min, max, block_size Backing store: uint, ulong, ha_rows, ulonglong, long, depending on the Sys_var_*

Constructor & Destructor Documentation

◆ Sys_var_integer()

template<typename T , ulong ARGT, enum enum_mysql_show_type SHOWT, bool SIGNED>
Sys_var_integer< T, ARGT, SHOWT, SIGNED >::Sys_var_integer ( const char *  name_arg,
const char *  comment,
int  flag_args,
ptrdiff_t  off,
size_t  size,
CMD_LINE  getopt,
min_val,
max_val,
def_val,
uint  block_size,
PolyLock lock = 0,
enum binlog_status_enum  binlog_status_arg = VARIABLE_NOT_IN_BINLOG,
on_check_function  on_check_func = 0,
on_update_function  on_update_func = 0,
const char *  substitute = 0,
int  parse_flag = PARSE_NORMAL 
)
inline

Member Function Documentation

◆ check_update_type()

template<typename T , ulong ARGT, enum enum_mysql_show_type SHOWT, bool SIGNED>
bool Sys_var_integer< T, ARGT, SHOWT, SIGNED >::check_update_type ( Item_result  type)
inline

◆ do_check()

template<typename T , ulong ARGT, enum enum_mysql_show_type SHOWT, bool SIGNED>
bool Sys_var_integer< T, ARGT, SHOWT, SIGNED >::do_check ( THD thd,
set_var var 
)
inline

◆ global_save_default()

template<typename T , ulong ARGT, enum enum_mysql_show_type SHOWT, bool SIGNED>
void Sys_var_integer< T, ARGT, SHOWT, SIGNED >::global_save_default ( THD ,
set_var var 
)
inline

◆ global_update()

template<typename T , ulong ARGT, enum enum_mysql_show_type SHOWT, bool SIGNED>
bool Sys_var_integer< T, ARGT, SHOWT, SIGNED >::global_update ( THD ,
set_var var 
)
inline

◆ max_var_ptr()

template<typename T , ulong ARGT, enum enum_mysql_show_type SHOWT, bool SIGNED>
T* Sys_var_integer< T, ARGT, SHOWT, SIGNED >::max_var_ptr ( )
inlineprivate

◆ saved_value_to_string()

template<typename T , ulong ARGT, enum enum_mysql_show_type SHOWT, bool SIGNED>
void Sys_var_integer< T, ARGT, SHOWT, SIGNED >::saved_value_to_string ( THD ,
set_var var,
char *  def_val 
)
inline

◆ session_save_default()

template<typename T , ulong ARGT, enum enum_mysql_show_type SHOWT, bool SIGNED>
void Sys_var_integer< T, ARGT, SHOWT, SIGNED >::session_save_default ( THD thd,
set_var var 
)
inline

◆ session_update()

template<typename T , ulong ARGT, enum enum_mysql_show_type SHOWT, bool SIGNED>
bool Sys_var_integer< T, ARGT, SHOWT, SIGNED >::session_update ( THD thd,
set_var var 
)
inline

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