~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/float.h

  • Committer: Olaf van der Spek
  • Date: 2011-03-23 10:31:37 UTC
  • mto: (2247.1.1 build)
  • mto: This revision was merged to the branch mainline in revision 2248.
  • Revision ID: olafvdspek@gmail.com-20110323103137-lwevis2tfchgu18u
Propogate return void

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
20
 
#ifndef DRIZZLED_ITEM_FLOAT_H
21
 
#define DRIZZLED_ITEM_FLOAT_H
 
20
#pragma once
22
21
 
23
22
#include <drizzled/item/num.h>
24
23
 
51
50
  double val_real() { assert(fixed == 1); return value; }
52
51
  int64_t val_int();
53
52
  String *val_str(String*);
54
 
  my_decimal *val_decimal(my_decimal *);
 
53
  type::Decimal *val_decimal(type::Decimal *);
55
54
  bool basic_const_item() const { return 1; }
56
55
  Item *clone_item()
57
56
  { return new Item_float(name, value, decimals, max_length); }
58
57
  Item_num *neg() { value= -value; return this; }
59
 
  virtual void print(String *str, enum_query_type query_type);
 
58
  virtual void print(String *str);
60
59
  bool eq(const Item *, bool binary_cmp) const;
61
60
};
62
61
 
69
68
    :Item_float(NULL, val_arg, decimal_par, length), func_name(str)
70
69
  {}
71
70
 
72
 
  virtual inline void print(String *str, enum_query_type)
 
71
  virtual inline void print(String *str)
73
72
  {
74
73
    str->append(func_name);
75
74
  }
79
78
 
80
79
} /* namespace drizzled */
81
80
 
82
 
#endif /* DRIZZLED_ITEM_FLOAT_H */
83
81