~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/identifier/table.h

  • Committer: Olaf van der Spek
  • Date: 2011-03-23 23:52:54 UTC
  • mto: This revision was merged to the branch mainline in revision 2251.
  • Revision ID: olafvdspek@gmail.com-20110323235254-g3q0c1feajno7edr
 Remove const_reference and reference from identifier::Table

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
public:
60
60
  typedef message::Table::TableType Type;
61
61
  typedef std::vector <Table> vector;
62
 
  typedef const Table& const_reference;
63
 
  typedef Table& reference;
64
62
 
65
63
  class Key
66
64
  {
217
215
 
218
216
  void copyToTableMessage(message::Table &message) const;
219
217
 
220
 
  friend bool operator<(Table::const_reference left, Table::const_reference right)
 
218
  friend bool operator<(const Table& left, const Table& right)
221
219
  {
222
220
    if (left.getKey() < right.getKey())
223
221
    {
227
225
    return false;
228
226
  }
229
227
 
230
 
  friend bool operator==(Table::const_reference left, Table::const_reference right)
 
228
  friend bool operator==(const Table& left, const Table& right)
231
229
  {
232
230
    if (left.getHashValue() == right.getHashValue())
233
231
    {
257
255
  }
258
256
};
259
257
 
260
 
std::ostream& operator<<(std::ostream& output, Table::const_reference identifier);
 
258
std::ostream& operator<<(std::ostream& output, const Table& identifier);
261
259
std::size_t hash_value(Table const& b);
262
260
std::size_t hash_value(Table::Key const& b);
263
261