~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/cmpfunc.h

  • Committer: Olaf van der Spek
  • Date: 2011-07-05 09:52:28 UTC
  • mto: This revision was merged to the branch mainline in revision 2367.
  • Revision ID: olafvdspek@gmail.com-20110705095228-y4aejvsuyeezloqe
Refactor Items

Show diffs side-by-side

added added

removed removed

Lines of Context:
138
138
  : item::function::Boolean(a), value(a_value), affirmative(a_affirmative)
139
139
  {}
140
140
 
141
 
  ~Item_func_truth()
142
 
  {}
143
141
private:
144
142
  /**
145
143
    True for <code>X IS [NOT] TRUE</code>,
161
159
{
162
160
public:
163
161
  Item_func_istrue(Item *a) : Item_func_truth(a, true, true) {}
164
 
  ~Item_func_istrue() {}
165
162
  virtual const char* func_name() const { return "istrue"; }
166
163
};
167
164
 
174
171
{
175
172
public:
176
173
  Item_func_isnottrue(Item *a) : Item_func_truth(a, true, false) {}
177
 
  ~Item_func_isnottrue() {}
178
174
  virtual const char* func_name() const { return "isnottrue"; }
179
175
};
180
176
 
187
183
{
188
184
public:
189
185
  Item_func_isfalse(Item *a) : Item_func_truth(a, false, true) {}
190
 
  ~Item_func_isfalse() {}
191
186
  virtual const char* func_name() const { return "isfalse"; }
192
187
};
193
188
 
200
195
{
201
196
public:
202
197
  Item_func_isnotfalse(Item *a) : Item_func_truth(a, false, false) {}
203
 
  ~Item_func_isnotfalse() {}
204
198
  virtual const char* func_name() const { return "isnotfalse"; }
205
199
};
206
200