~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/cache_decimal.h

  • Committer: Mark Atwood
  • Date: 2011-07-13 22:28:29 UTC
  • mfrom: (2318.7.25 refactor1)
  • Revision ID: me@mark.atwood.name-20110713222829-sswp061b5ts7tc1k
mergeĀ lp:~olafvdspek/drizzle/refactor1

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#include <drizzled/type/decimal.h>
23
23
#include <drizzled/item/cache.h>
24
24
 
25
 
namespace drizzled
26
 
{
 
25
namespace drizzled {
27
26
 
28
 
class Item_cache_decimal: public Item_cache
 
27
class Item_cache_decimal : public Item_cache
29
28
{
30
 
protected:
31
 
  type::Decimal decimal_value;
32
29
public:
33
 
  Item_cache_decimal(): Item_cache() {}
34
 
 
35
 
  void store(Item *item);
 
30
  void store(Item*);
36
31
  double val_real();
37
32
  int64_t val_int();
38
 
  String* val_str(String *str);
39
 
  type::Decimal *val_decimal(type::Decimal *);
 
33
  String* val_str(String*);
 
34
  type::Decimal *val_decimal(type::Decimal*);
40
35
  enum Item_result result_type() const { return DECIMAL_RESULT; }
 
36
protected:
 
37
  type::Decimal decimal_value;
41
38
};
42
39
 
43
40
} /* namespace drizzled */