~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/identifier/schema.h

  • Committer: Brian Aker
  • Date: 2011-03-24 23:14:46 UTC
  • mfrom: (2246.4.12 foreach)
  • Revision ID: brian@tangent.org-20110324231446-7q1gydkglys73nft
Merge in XTF

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
  std::string db_path;
44
44
 
45
45
public:
46
 
  typedef std::vector <Schema> vector;
47
 
  typedef const Schema& const_reference;
 
46
  typedef std::vector<Schema> vector;
48
47
 
49
48
  Schema(const std::string &db_arg);
50
49
 
70
69
  }
71
70
 
72
71
  bool compare(const std::string &arg) const;
73
 
  bool compare(Schema::const_reference) const;
 
72
  bool compare(const Schema&) const;
74
73
 
75
 
  friend bool operator<(Schema::const_reference left, Schema::const_reference right)
 
74
  friend bool operator<(const Schema& left, const Schema& right)
76
75
  {
77
76
    return boost::ilexicographical_compare(left.getSchemaName(), right.getSchemaName());
78
77
  }
79
78
 
80
 
  friend bool operator==(Schema::const_reference left,
81
 
                         Schema::const_reference right)
 
79
  friend bool operator==(const Schema& left,
 
80
                         const Schema& right)
82
81
  {
83
82
    return boost::iequals(left.getSchemaName(), right.getSchemaName());
84
83
  }