#include <my_decimal.h>
Inheritance diagram for my_decimal:


Public Member Functions | |
| void | init () |
| my_decimal () | |
| void | fix_buffer_pointer () |
| bool | sign () const |
| void | sign (bool s) |
| uint | precision () const |
| void | init () |
| my_decimal () | |
| void | fix_buffer_pointer () |
| bool | sign () const |
| void | sign (bool s) |
| uint | precision () const |
Private Attributes | |
| decimal_digit_t | buffer [DECIMAL_BUFF_LENGTH] |
Definition at line 84 of file my_decimal.h.
| my_decimal::my_decimal | ( | ) | [inline] |
Definition at line 100 of file my_decimal.h.
References init().
00101 { 00102 init(); 00103 }
Here is the call graph for this function:

| my_decimal::my_decimal | ( | ) | [inline] |
Definition at line 100 of file my_decimal.h.
References init().
00101 { 00102 init(); 00103 }
Here is the call graph for this function:

| void my_decimal::fix_buffer_pointer | ( | ) | [inline] |
| void my_decimal::fix_buffer_pointer | ( | ) | [inline] |
Definition at line 104 of file my_decimal.h.
References st_decimal_t::buf, and buffer.
Referenced by field_decimal::add(), check_result_and_overflow(), cmp_decimal(), Item_func_interval::fix_length_and_dec(), Item_sum_variance::Item_sum_variance(), in_decimal::set(), and User_var_log_event::write().
Here is the caller graph for this function:

| void my_decimal::init | ( | ) | [inline] |
Definition at line 90 of file my_decimal.h.
References st_decimal_t::buf, buffer, DECIMAL_BUFF_LENGTH, and st_decimal_t::len.
00091 { 00092 len= DECIMAL_BUFF_LENGTH; 00093 buf= buffer; 00094 #if !defined (HAVE_purify) && !defined(DBUG_OFF) 00095 /* Set buffer to 'random' value to find wrong buffer usage */ 00096 for (uint i= 0; i < DECIMAL_BUFF_LENGTH; i++) 00097 buffer[i]= i; 00098 #endif 00099 }
| void my_decimal::init | ( | ) | [inline] |
Definition at line 90 of file my_decimal.h.
References st_decimal_t::buf, buffer, DECIMAL_BUFF_LENGTH, and st_decimal_t::len.
Referenced by Item_func_interval::fix_length_and_dec(), and my_decimal().
00091 { 00092 len= DECIMAL_BUFF_LENGTH; 00093 buf= buffer; 00094 #if !defined (HAVE_purify) && !defined(DBUG_OFF) 00095 /* Set buffer to 'random' value to find wrong buffer usage */ 00096 for (uint i= 0; i < DECIMAL_BUFF_LENGTH; i++) 00097 buffer[i]= i; 00098 #endif 00099 }
Here is the caller graph for this function:

| uint my_decimal::precision | ( | ) | const [inline] |
| uint my_decimal::precision | ( | ) | const [inline] |
Definition at line 108 of file my_decimal.h.
References st_decimal_t::frac, and st_decimal_t::intg.
Referenced by Item_decimal::decimal_precision(), Item_param::set_decimal(), and Item_param::set_from_user_var().
Here is the caller graph for this function:

| void my_decimal::sign | ( | bool | s | ) | [inline] |
Definition at line 107 of file my_decimal.h.
References st_decimal_t::sign.
00107 { decimal_t::sign= s; }
| bool my_decimal::sign | ( | ) | const [inline] |
Definition at line 106 of file my_decimal.h.
References st_decimal_t::sign.
00106 { return decimal_t::sign; }
| void my_decimal::sign | ( | bool | s | ) | [inline] |
Definition at line 107 of file my_decimal.h.
References st_decimal_t::sign.
00107 { decimal_t::sign= s; }
| bool my_decimal::sign | ( | ) | const [inline] |
Definition at line 106 of file my_decimal.h.
References st_decimal_t::sign.
Referenced by check_result_and_overflow(), Field::convert_decimal2longlong(), Item_func_abs::decimal_op(), Item_decimal::neg(), print_decimal(), Item_decimal::set_decimal_value(), Field_new_decimal::store(), Field_new_decimal::store_value(), Item_decimal_typecast::val_decimal(), and Item_func_format::val_str().
00106 { return decimal_t::sign; }
Here is the caller graph for this function:

decimal_digit_t my_decimal::buffer [private] |
1.4.7

