~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/optimizer/position.h

  • Committer: Padraig O'Sullivan
  • Date: 2009-08-17 21:14:17 UTC
  • mto: (1115.3.10 captain)
  • mto: This revision was merged to the branch mainline in revision 1120.
  • Revision ID: osullivan.padraig@gmail.com-20090817211417-1lrrj00tnnvp83wu
Added a copy constructor and assignment operator to the Position class.

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
      ref_depend_map(in_ref_depend_map)
58
58
  {}
59
59
 
 
60
  Position(const Position &rhs)
 
61
    :
 
62
      records_read(rhs.records_read),
 
63
      read_time(rhs.read_time),
 
64
      table(rhs.table),
 
65
      key(rhs.key),
 
66
      ref_depend_map(rhs.ref_depend_map)
 
67
  {}
 
68
 
 
69
  Position &operator=(const Position &rhs)
 
70
  {
 
71
    if (this == &rhs)
 
72
    {
 
73
      return *this;
 
74
    }
 
75
    records_read= rhs.records_read;
 
76
    read_time= rhs.read_time;
 
77
    table= rhs.table;
 
78
    key= rhs.key;
 
79
    ref_depend_map= rhs.ref_depend_map;
 
80
    return *this;
 
81
  }
 
82
 
60
83
  /**
61
84
   * Determine whether the table this particular position is representing in
62
85
   * the query plan is a const table or not. A constant table is defined as