~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/cache_int.h

  • Committer: Olaf van der Spek
  • Date: 2011-03-24 00:16:14 UTC
  • mto: This revision was merged to the branch mainline in revision 2251.
  • Revision ID: olafvdspek@gmail.com-20110324001614-wvmgc6eg52oq2321
Remove const_reference and reference from Session

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_CACHE_INT_H
21
 
#define DRIZZLED_ITEM_CACHE_INT_H
 
20
#pragma once
22
21
 
23
22
#include <drizzled/item/cache.h>
24
23
 
39
38
  double val_real() { assert(fixed == 1); return (double) value; }
40
39
  int64_t val_int() { assert(fixed == 1); return value; }
41
40
  String* val_str(String *str);
42
 
  my_decimal *val_decimal(my_decimal *);
 
41
  type::Decimal *val_decimal(type::Decimal *);
43
42
  enum Item_result result_type() const { return INT_RESULT; }
44
43
  bool result_as_int64_t() { return true; }
45
44
};
46
45
 
47
46
} /* namespace drizzled */
48
47
 
49
 
#endif /* DRIZZLED_ITEM_CACHE_INT_H */