~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/optimizer/table_read_plan.h

  • Committer: Olaf van der Spek
  • Date: 2011-06-27 22:54:15 UTC
  • mto: This revision was merged to the branch mainline in revision 2351.
  • Revision ID: olafvdspek@gmail.com-20110627225415-1kcs9d5rh9dvcyo3
Fix ICC warning

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 
20
20
#pragma once
21
21
 
 
22
#include <drizzled/memory/sql_alloc.h>
22
23
#include <drizzled/util/functors.h>
23
24
#include <algorithm>
24
25
 
29
30
  Table rows retrieval plan. Range optimizer creates QuickSelectInterface-derived
30
31
  objects from table read plans.
31
32
*/
32
 
class TableReadPlan
 
33
class TableReadPlan : public memory::SqlAlloc
33
34
{
34
35
public:
35
36
  /*
65
66
                                           bool retrieve_full_rows,
66
67
                                           memory::Root *parent_alloc= NULL) = 0;
67
68
 
68
 
  /* Table read plans are allocated on memory::Root and are never deleted */
69
 
  static void *operator new(size_t size, memory::Root& root)
70
 
  {
71
 
    return root.alloc(size);
72
 
  }
73
 
 
74
 
  static void operator delete(void *, size_t)
75
 
  { }
76
 
 
77
 
  static void operator delete(void *, memory::Root *)
78
 
    { /* Never called */ }
79
 
 
80
69
  virtual ~TableReadPlan() {} /* Remove gcc warning */
81
 
 
82
70
};
83
71
 
84
72