~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_list.h

Use List::size()

Show diffs side-by-side

added added

removed removed

Lines of Context:
112
112
{
113
113
protected:
114
114
  list_node *first,**last;
 
115
  uint32_t elements;
115
116
public:
116
 
  uint32_t elements;
117
117
 
118
118
  inline void clear() { elements=0; first= &end_of_list; last=&first;}
119
119
  inline base_list() { clear(); }
403
403
  {
404
404
    return elements;
405
405
  }
 
406
 
 
407
  void set_size(size_t v)
 
408
  {
 
409
    elements = v;
 
410
  }
406
411
};
407
412
 
408
413