~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/opt_range.h

  • Committer: Padraig O'Sullivan
  • Date: 2009-03-20 23:39:53 UTC
  • mto: (960.2.5 mordred)
  • mto: This revision was merged to the branch mainline in revision 961.
  • Revision ID: osullivan.padraig@gmail.com-20090320233953-6hdn5dyv5235chzi
Moving my function object to the header file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
531
531
  bool scans_inited;
532
532
};
533
533
 
 
534
class compare_functor
 
535
{
 
536
  QUICK_ROR_UNION_SELECT *self;
 
537
  public:
 
538
  compare_functor(QUICK_ROR_UNION_SELECT *in_arg)
 
539
    : self(in_arg) { }
 
540
  inline bool operator()(const QUICK_SELECT_I *i, const QUICK_SELECT_I *j) const
 
541
  {
 
542
    return self->head->file->cmp_ref(i->last_rowid,
 
543
                                     j->last_rowid);
 
544
  }
 
545
};
 
546
 
534
547
 
535
548
/*
536
549
  Rowid-Ordered Retrieval index union select.