~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item_func.h

code clean move Item_func_ceiling, Item_func_cos, Item_func_sin, Item_func_tan, Item_func_int_val to functions directory

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
#include <drizzled/functions/plus.h>
49
49
#include <drizzled/functions/real.h>
50
50
#include <drizzled/functions/dec.h>
 
51
#include <drizzled/functions/int_val.h>
51
52
#include <drizzled/functions/acos.h>
52
53
#include <drizzled/functions/asin.h>
53
54
#include <drizzled/functions/atan.h>
 
55
#include <drizzled/functions/ceiling.h>
 
56
#include <drizzled/functions/cos.h>
54
57
#include <drizzled/functions/exp.h>
55
58
#include <drizzled/functions/ln.h>
56
59
#include <drizzled/functions/log.h>
57
60
#include <drizzled/functions/pow.h>
 
61
#include <drizzled/functions/sin.h>
58
62
#include <drizzled/functions/sqrt.h>
59
63
#include <drizzled/functions/signed.h>
 
64
#include <drizzled/functions/tan.h>
60
65
#include <drizzled/functions/unsigned.h>
61
66
 
62
 
class Item_func_cos :public Item_dec_func
63
 
{
64
 
public:
65
 
  Item_func_cos(Item *a) :Item_dec_func(a) {}
66
 
  double val_real();
67
 
  const char *func_name() const { return "cos"; }
68
 
};
69
 
 
70
 
class Item_func_sin :public Item_dec_func
71
 
{
72
 
public:
73
 
  Item_func_sin(Item *a) :Item_dec_func(a) {}
74
 
  double val_real();
75
 
  const char *func_name() const { return "sin"; }
76
 
};
77
 
 
78
 
class Item_func_tan :public Item_dec_func
79
 
{
80
 
public:
81
 
  Item_func_tan(Item *a) :Item_dec_func(a) {}
82
 
  double val_real();
83
 
  const char *func_name() const { return "tan"; }
84
 
};
85
 
 
86
67
class Item_func_integer :public Item_int_func
87
68
{
88
69
public:
91
72
};
92
73
 
93
74
 
94
 
class Item_func_int_val :public Item_func_num1
95
 
{
96
 
public:
97
 
  Item_func_int_val(Item *a) :Item_func_num1(a) {}
98
 
  void fix_num_length_and_dec();
99
 
  void find_num_type();
100
 
};
101
 
 
102
 
 
103
 
class Item_func_ceiling :public Item_func_int_val
104
 
{
105
 
public:
106
 
  Item_func_ceiling(Item *a) :Item_func_int_val(a) {}
107
 
  const char *func_name() const { return "ceiling"; }
108
 
  int64_t int_op();
109
 
  double real_op();
110
 
  my_decimal *decimal_op(my_decimal *);
111
 
};
112
 
 
113
 
 
114
75
class Item_func_floor :public Item_func_int_val
115
76
{
116
77
public: