~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/optimizer/sargable_param.h

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

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
      num_values(in_num_values)
58
58
  {}
59
59
 
 
60
  SargableParam(const SargableParam &rhs)
 
61
    :
 
62
      field(rhs.field),
 
63
      arg_value(rhs.arg_value),
 
64
      num_values(rhs.num_values)
 
65
  {}
 
66
 
 
67
  SargableParam &operator=(const SargableParam &rhs)
 
68
  {
 
69
    if (this == &rhs)
 
70
    {
 
71
      return *this;
 
72
    }
 
73
    field= rhs.field;
 
74
    arg_value= rhs.arg_value;
 
75
    num_values= rhs.num_values;
 
76
    return *this;
 
77
  }
 
78
 
60
79
  Field *getField()
61
80
  {
62
81
    return field;