~drizzle-trunk/drizzle/development

390.1.2 by Monty Taylor
Fixed copyright headers in drizzled/
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
 *
1999.6.1 by kalebral at gmail
update Copyright strings to a more common format to help with creating the master debian copyright file
4
 *  Copyright (C) 2008 Sun Microsystems, Inc.
390.1.2 by Monty Taylor
Fixed copyright headers in drizzled/
5
 *
6
 *  This program is free software; you can redistribute it and/or modify
7
 *  it under the terms of the GNU General Public License as published by
8
 *  the Free Software Foundation; version 2 of the License.
9
 *
10
 *  This program is distributed in the hope that it will be useful,
11
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 *  GNU General Public License for more details.
14
 *
15
 *  You should have received a copy of the GNU General Public License
16
 *  along with this program; if not, write to the Free Software
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
 */
1 by brian
clean slate
19
2234 by Brian Aker
Mass removal of ifdef/endif in favor of pragma once.
20
#pragma once
575.1.6 by Monty Taylor
Cleaned up some headers for PCH.
21
2173.2.1 by Monty Taylor
Fixes incorrect usage of include
22
#include <drizzled/item.h>
1237.9.3 by Padraig O'Sullivan
Removed one the includes I put in server_includes.h for the last commit to get rid of the inclusion
23
1280.1.10 by Monty Taylor
Put everything in drizzled into drizzled namespace.
24
namespace drizzled
25
{
26
1 by brian
clean slate
27
class Item_row: public Item
28
{
29
  Item **items;
30
  table_map used_tables_cache;
482 by Brian Aker
Remove uint.
31
  uint32_t arg_count;
1 by brian
clean slate
32
  bool const_item_cache;
33
  bool with_null;
34
public:
779.3.18 by Monty Taylor
Cleaned up warnings up through innodb.
35
36
  using Item::split_sum_func;
37
1 by brian
clean slate
38
  Item_row(List<Item> &);
39
  Item_row(Item_row *item):
40
    Item(),
41
    items(item->items),
42
    used_tables_cache(item->used_tables_cache),
43
    arg_count(item->arg_count),
44
    const_item_cache(item->const_item_cache),
45
    with_null(0)
46
  {}
47
48
  enum Type type() const { return ROW_ITEM; };
49
  void illegal_method_call(const char *);
50
  bool is_null() { return null_value; }
1052.2.4 by Nathan Williams
No actual code changes. Changed Send_field to SendField to be consistent with coding standards.
51
  void make_field(SendField *)
1 by brian
clean slate
52
  {
53
    illegal_method_call((const char*)"make_field");
54
  };
55
  double val_real()
56
  {
57
    illegal_method_call((const char*)"val");
58
    return 0;
59
  };
152 by Brian Aker
longlong replacement
60
  int64_t val_int()
1 by brian
clean slate
61
  {
62
    illegal_method_call((const char*)"val_int");
63
    return 0;
64
  };
65
  String *val_str(String *)
66
  {
67
    illegal_method_call((const char*)"val_str");
68
    return 0;
69
  };
2030.1.4 by Brian Aker
Change my_decimal to Decimal
70
  type::Decimal *val_decimal(type::Decimal *)
1 by brian
clean slate
71
  {
72
    illegal_method_call((const char*)"val_decimal");
73
    return 0;
74
  };
520.1.22 by Brian Aker
Second pass of thd cleanup
75
  bool fix_fields(Session *session, Item **ref);
846 by Brian Aker
Removing on typedeffed class.
76
  void fix_after_pullout(Select_Lex *new_parent, Item **ref);
1 by brian
clean slate
77
  void cleanup();
520.1.22 by Brian Aker
Second pass of thd cleanup
78
  void split_sum_func(Session *session, Item **ref_pointer_array, List<Item> &fields);
1 by brian
clean slate
79
  table_map used_tables() const { return used_tables_cache; };
80
  bool const_item() const { return const_item_cache; };
81
  enum Item_result result_type() const { return ROW_RESULT; }
82
  void update_used_tables();
2215.2.1 by Stewart Smith
remove enum_query_type which was effectively unused. It was set to one value once, compared to it once (i.e. always true) and passed around everywhere doing nothing.
83
  virtual void print(String *str);
1 by brian
clean slate
84
481 by Brian Aker
Remove all of uchar.
85
  bool walk(Item_processor processor, bool walk_subquery, unsigned char *arg);
86
  Item *transform(Item_transformer transformer, unsigned char *arg);
1 by brian
clean slate
87
482 by Brian Aker
Remove uint.
88
  uint32_t cols() { return arg_count; }
89
  Item* element_index(uint32_t i) { return items[i]; }
90
  Item** addr(uint32_t i) { return items + i; }
91
  bool check_cols(uint32_t c);
1 by brian
clean slate
92
  bool null_inside() { return with_null; };
93
  void bring_value();
94
};
575.1.6 by Monty Taylor
Cleaned up some headers for PCH.
95
1280.1.10 by Monty Taylor
Put everything in drizzled into drizzled namespace.
96
} /* namespace drizzled */
97