~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item_func.h

break out item_real_func into functions directory

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
 
33
33
#include <drizzled/functions/func.h>
34
34
#include <drizzled/functions/int.h>
35
 
 
36
 
class Item_real_func :public Item_func
37
 
{
38
 
public:
39
 
  Item_real_func() :Item_func() {}
40
 
  Item_real_func(Item *a) :Item_func(a) {}
41
 
  Item_real_func(Item *a,Item *b) :Item_func(a,b) {}
42
 
  Item_real_func(List<Item> &list) :Item_func(list) {}
43
 
  String *val_str(String*str);
44
 
  my_decimal *val_decimal(my_decimal *decimal_value);
45
 
  int64_t val_int()
46
 
    { assert(fixed == 1); return (int64_t) rint(val_real()); }
47
 
  enum Item_result result_type () const { return REAL_RESULT; }
48
 
  void fix_length_and_dec()
49
 
  { decimals= NOT_FIXED_DEC; max_length= float_length(decimals); }
50
 
};
 
35
#include <drizzled/functions/real.h>
51
36
 
52
37
 
53
38
class Item_func_numhybrid: public Item_func