* Returns whether this iterator is positioned * before other: -1 * equal to other: 0 * after other: 1 */
| 232 | * after other: 1 |
| 233 | */ |
| 234 | int PageIterator::Cmp(const PageIterator &other) const { |
| 235 | int word_cmp = it_->cmp(*other.it_); |
| 236 | if (word_cmp != 0) |
| 237 | return word_cmp; |
| 238 | if (blob_index_ < other.blob_index_) |
| 239 | return -1; |
| 240 | if (blob_index_ == other.blob_index_) |
| 241 | return 0; |
| 242 | return 1; |
| 243 | } |
| 244 | |
| 245 | // ============= Accessing data ==============. |
| 246 | // Coordinate system: |