My Project
|
#include <sp_pcontext.h>
Public Types | |
enum | enum_mode { MODE_IN, MODE_OUT, MODE_INOUT } |
Public Member Functions | |
sp_variable (LEX_STRING _name, enum_field_types _type, enum_mode _mode, uint _offset) | |
Public Attributes | |
LEX_STRING | name |
Name of the SP-variable. | |
enum enum_field_types | type |
Field-type of the SP-variable. | |
enum_mode | mode |
Mode of the SP-variable. | |
uint | offset |
Item * | default_value |
Default value of the SP-variable (if any). | |
Create_field | field_def |
Full type information (field meta-data) of the SP-variable. |
This class represents a stored program variable or a parameter (also referenced as 'SP-variable').
uint sp_variable::offset |
The index to the variable's value in the runtime frame.
It is calculated during parsing and used when creating sp_instr_set instructions and Item_splocal items. I.e. values are set/referred by array indexing in runtime.