|
My Project
|
#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) |
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.
| void my_decimal::swap | ( | my_decimal & | rhs | ) | [inline] |
Swap two my_decimal values
1.7.6.1