| 30 | } |
| 31 | |
| 32 | void Route::Iterator::ensureValidIndex() |
| 33 | { |
| 34 | // size() - 1 is the index of the end depot, and what's returned by |
| 35 | // Route::end() - we must not exceed it. |
| 36 | while (idx_ < nodes_->size() - 1 && operator*() -> isReloadDepot()) |
| 37 | idx_++; // skip any intermediate reload depots |
| 38 | |
| 39 | assert(0 < idx_ && idx_ < nodes_->size()); |
| 40 | } |
| 41 | |
| 42 | bool Route::Iterator::operator==(Iterator const &other) const |
| 43 | { |
nothing calls this directly
no test coverage detected