susumu.yata
null+****@clear*****
Wed Jul 30 11:34:30 JST 2014
susumu.yata 2014-07-30 11:34:30 +0900 (Wed, 30 Jul 2014) New Revision: 9933d9fdbe0927cecc89e30450b89c59dbaeb35b https://github.com/groonga/grnxx/commit/9933d9fdbe0927cecc89e30450b89c59dbaeb35b Message: Remove a garbage comment. Modified files: include/grnxx/record.hpp Modified: include/grnxx/record.hpp (+0 -68) =================================================================== --- include/grnxx/record.hpp 2014-07-29 14:53:51 +0900 (0480c36) +++ include/grnxx/record.hpp 2014-07-30 11:34:30 +0900 (e140776) @@ -161,74 +161,6 @@ class RecordSet { Array<Record> records_; }; -//class RecordSubset { -// public: -// explicit RecordSubset(RecordSet *record_set) -// : record_set_(record_set), -// offset_(0), -// size_(record_set_->size()) {} -// RecordSubset(RecordSet *record_set, Int offset) -// : record_set_(record_set), -// offset_(offset), -// size_(record_set_->size() - offset) {} -// RecordSubset(RecordSet *record_set, Int offset, Int size) -// : record_set_(record_set), -// offset_(offset), -// size_(size) {} -// RecordSubset(const RecordSubset &subset) = default; -// RecordSubset(const RecordSubset &subset, Int offset) -// : record_set_(subset.record_set_), -// offset_(subset.offset_ + offset), -// size_(subset.size() - offset) {} -// RecordSubset(const RecordSubset &subset, Int offset, Int size) -// : record_set_(subset.record_set_), -// offset_(subset.offset_ + offset), -// size_(size) {} - -// // Return the number of records. -// Int size() const { -// return size_; -// } - -// // Return the "i"-th record. -// Record get(Int i) const { -// return record_set_->get(offset_ + i); -// } -// // Return the row ID of the "i"-th record. -// Int get_row_id(Int i) const { -// return record_set_->get_row_id(offset_ + i); -// } -// // Return the score of the "i"-th record. -// Float get_score(Int i) const { -// return record_set_->get_score(offset_ + i); -// } - -// // Set the "i"-th record. -// void set(Int i, Record record) { -// record_set_->set(offset_ + i, record); -// } -// // Set the row ID of the "i"-th record. -// void set_row_id(Int i, Int row_id) { -// record_set_->set_row_id(offset_ + i, row_id); -// } -// // Set the score of the "i"-th record. -// void set_score(Int i, Float score) { -// record_set_->set_score(offset_ + i, score); -// } - -// // Swap the "i"-th record and the "j"-th record. -// void swap(Int i, Int j) { -// Record temporary_record = get(i); -// set(i, get(j)); -// set(j, temporary_record); -// } - -// private: -// RecordSet *record_set_; -// Int offset_; -// Int size_; -//}; - } // namespace grnxx #endif // GRNXX_RECORD_HPP -------------- next part -------------- HTML����������������������������...Download