MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
my_decimal Class Reference

#include <my_decimal.h>

Inheritance diagram for my_decimal:
Collaboration diagram for my_decimal:

Public Member Functions

 my_decimal (const my_decimal &rhs)
my_decimaloperator= (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

Detailed Description

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.

Member Function Documentation

void my_decimal::swap ( my_decimal rhs)
inline

Swap two my_decimal values

Definition at line 178 of file my_decimal.h.

Here is the caller graph for this function:


The documentation for this class was generated from the following file: