| 85 | } |
| 86 | |
| 87 | SharedBox Truckload::Iterator::getLastBox() |
| 88 | { |
| 89 | // Return m_tail's box (or nullptr if the list is empty) |
| 90 | m_current = m_tail; |
| 91 | return m_current ? m_current->m_box : nullptr; |
| 92 | } |
| 93 | |
| 94 | SharedBox Truckload::Iterator::getNextBox() |
| 95 | { |