My Project
Public Member Functions
my_decimal Class Reference

#include <my_decimal.h>

List of all members.

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)

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.


Member Function Documentation

void my_decimal::swap ( my_decimal rhs) [inline]

Swap two my_decimal values


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines