My Project
Public Member Functions
Sys_var_integer< T, ARGT, SHOWT, SIGNED > Class Template Reference

#include <sys_vars.h>

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

List of all members.

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 *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 *thd, set_var *var)

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_*


Member Function Documentation

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 *  thd,
set_var var 
) [inline, virtual]

save the global default value of the variable in var

Implements sys_var.

Reimplemented in Sys_var_session_special.

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, virtual]

save the session default value of the variable in var

Implements sys_var.

Reimplemented in Sys_var_session_special.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines