~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
2318.7.19 by Olaf van der Spek
Refactor Items
24
namespace drizzled {
1280.1.10 by Monty Taylor
Put everything in drizzled into drizzled namespace.
25
2318.7.19 by Olaf van der Spek
Refactor Items
26
class Item_row : public Item
1 by brian
clean slate
27
{
28
  Item **items;
29
  table_map used_tables_cache;
482 by Brian Aker
Remove uint.
30
  uint32_t arg_count;
1 by brian
clean slate
31
  bool const_item_cache;
32
  bool with_null;
33
public:
779.3.18 by Monty Taylor
Cleaned up warnings up through innodb.
34
35
  using Item::split_sum_func;
36
1 by brian
clean slate
37
  Item_row(List<Item> &);
38
  Item_row(Item_row *item):
39
    Item(),
40
    items(item->items),
41
    used_tables_cache(item->used_tables_cache),
42
    arg_count(item->arg_count),
43
    const_item_cache(item->const_item_cache),
44
    with_null(0)
45
  {}
46
47
  enum Type type() const { return ROW_ITEM; };
2318.7.19 by Olaf van der Spek
Refactor Items
48
  void illegal_method_call(const char*);
1 by brian
clean slate
49
  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.
50
  void make_field(SendField *)
1 by brian
clean slate
51
  {
2318.7.19 by Olaf van der Spek
Refactor Items
52
    illegal_method_call("make_field");
1 by brian
clean slate
53
  };
54
  double val_real()
55
  {
2318.7.19 by Olaf van der Spek
Refactor Items
56
    illegal_method_call("val");
1 by brian
clean slate
57
    return 0;
58
  };
152 by Brian Aker
longlong replacement
59
  int64_t val_int()
1 by brian
clean slate
60
  {
2318.7.19 by Olaf van der Spek
Refactor Items
61
    illegal_method_call("val_int");
1 by brian
clean slate
62
    return 0;
63
  };
64
  String *val_str(String *)
65
  {
2318.7.19 by Olaf van der Spek
Refactor Items
66
    illegal_method_call("val_str");
1 by brian
clean slate
67
    return 0;
68
  };
2030.1.4 by Brian Aker
Change my_decimal to Decimal
69
  type::Decimal *val_decimal(type::Decimal *)
1 by brian
clean slate
70
  {
2318.7.19 by Olaf van der Spek
Refactor Items
71
    illegal_method_call("val_decimal");
1 by brian
clean slate
72
    return 0;
73
  };
520.1.22 by Brian Aker
Second pass of thd cleanup
74
  bool fix_fields(Session *session, Item **ref);
846 by Brian Aker
Removing on typedeffed class.
75
  void fix_after_pullout(Select_Lex *new_parent, Item **ref);
1 by brian
clean slate
76
  void cleanup();
520.1.22 by Brian Aker
Second pass of thd cleanup
77
  void split_sum_func(Session *session, Item **ref_pointer_array, List<Item> &fields);
1 by brian
clean slate
78
  table_map used_tables() const { return used_tables_cache; };
79
  bool const_item() const { return const_item_cache; };
80
  enum Item_result result_type() const { return ROW_RESULT; }
81
  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.
82
  virtual void print(String *str);
1 by brian
clean slate
83
481 by Brian Aker
Remove all of uchar.
84
  bool walk(Item_processor processor, bool walk_subquery, unsigned char *arg);
85
  Item *transform(Item_transformer transformer, unsigned char *arg);
1 by brian
clean slate
86
482 by Brian Aker
Remove uint.
87
  uint32_t cols() { return arg_count; }
88
  Item* element_index(uint32_t i) { return items[i]; }
89
  Item** addr(uint32_t i) { return items + i; }
90
  bool check_cols(uint32_t c);
1 by brian
clean slate
91
  bool null_inside() { return with_null; };
92
  void bring_value();
93
};
575.1.6 by Monty Taylor
Cleaned up some headers for PCH.
94
1280.1.10 by Monty Taylor
Put everything in drizzled into drizzled namespace.
95
} /* namespace drizzled */
96