~ubuntu-branches/ubuntu/saucy/drizzle/saucy-proposed

« back to all changes in this revision

Viewing changes to drizzled/item/cache_real.h

  • Committer: Package Import Robot
  • Author(s): Clint Byrum
  • Date: 2012-06-19 10:46:49 UTC
  • mfrom: (1.1.6)
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20120619104649-e2l0ggd4oz3um0f4
Tags: upstream-7.1.36-stable
ImportĀ upstreamĀ versionĀ 7.1.36-stable

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
#include <drizzled/item/cache.h>
23
23
 
24
 
namespace drizzled
25
 
{
 
24
namespace drizzled {
26
25
 
27
 
class Item_cache_real: public Item_cache
 
26
class Item_cache_real : public Item_cache
28
27
{
29
28
  double value;
30
29
public:
31
30
  Item_cache_real(): Item_cache(), value(0) {}
32
31
 
33
 
  void store(Item *item);
 
32
  void store(Item*);
34
33
  double val_real() { assert(fixed == 1); return value; }
35
34
  int64_t val_int();
36
 
  String* val_str(String *str);
37
 
  type::Decimal *val_decimal(type::Decimal *);
 
35
  String* val_str(String*);
 
36
  type::Decimal *val_decimal(type::Decimal*);
38
37
  enum Item_result result_type() const { return REAL_RESULT; }
39
38
};
40
39