* Checks whether all orders of the list have a filled timetable. * @return whether all orders have a filled timetable. */
| 484 | * @return whether all orders have a filled timetable. |
| 485 | */ |
| 486 | bool OrderList::IsCompleteTimetable() const |
| 487 | { |
| 488 | for (const Order &o : this->orders) { |
| 489 | /* Implicit orders are, by definition, not timetabled. */ |
| 490 | if (o.IsType(OT_IMPLICIT)) continue; |
| 491 | if (!o.IsCompletelyTimetabled()) return false; |
| 492 | } |
| 493 | return true; |
| 494 | } |
| 495 | |
| 496 | #ifdef WITH_ASSERT |
| 497 | /** |
no test coverage detected