~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/cmpfunc.h

Use List::begin()

Show diffs side-by-side

added added

removed removed

Lines of Context:
1540
1540
 
1541
1541
class Item_equal: public item::function::Boolean
1542
1542
{
1543
 
  List<Item_field> fields; /* list of equal field items                    */
1544
 
  Item *const_item;        /* optional constant item equal to fields items */
1545
 
  cmp_item *eval_item;
1546
 
  bool cond_false;
 
1543
public:
 
1544
  typedef List<Item_field> fields_t;
1547
1545
 
1548
 
public:
1549
 
  inline Item_equal() :
1550
 
    item::function::Boolean(),
 
1546
  Item_equal() :
1551
1547
    const_item(0),
1552
1548
    eval_item(0),
1553
1549
    cond_false(0)
1555
1551
    const_item_cache=0;
1556
1552
  }
1557
1553
 
 
1554
  fields_t::iterator begin()
 
1555
  {
 
1556
    return fields.begin();
 
1557
  }
 
1558
 
1558
1559
  Item_equal(Item_field *f1, Item_field *f2);
1559
1560
  Item_equal(Item *c, Item_field *f);
1560
1561
  Item_equal(Item_equal *item_equal);
1580
1581
  virtual void print(String *str, enum_query_type query_type);
1581
1582
  const CHARSET_INFO *compare_collation()
1582
1583
  { return fields.head()->collation.collation; }
 
1584
private:
 
1585
  fields_t fields; /* list of equal field items                    */
 
1586
  Item *const_item;        /* optional constant item equal to fields items */
 
1587
  cmp_item *eval_item;
 
1588
  bool cond_false;
 
1589
 
1583
1590
};
1584
1591
 
1585
1592
class COND_EQUAL: public memory::SqlAlloc