MySQL 5.6.14 Source Code Document
|
#include <my_decimal.h>
Public Member Functions | |
my_decimal (const my_decimal &rhs) | |
my_decimal & | operator= (const my_decimal &rhs) |
void | init () |
void | sanity_check () |
void | fix_buffer_pointer () |
bool | sign () const |
void | sign (bool s) |
uint | precision () const |
void | swap (my_decimal &rhs) |
Additional Inherited Members | |
Public Attributes inherited from st_decimal_t | |
int | intg |
int | frac |
int | len |
my_bool | sign |
decimal_digit_t * | buf |
my_decimal class limits 'decimal_t' type to what we need in MySQL.
It contains internally all necessary space needed by the instance so no extra memory is needed. One should call fix_buffer_pointer() function when he moves my_decimal objects in memory.
Definition at line 99 of file my_decimal.h.
|
inline |
Swap two my_decimal values
Definition at line 178 of file my_decimal.h.