| 195 | */ |
| 196 | template <class Tinst, class Tcont> |
| 197 | void CargoList<Tinst, Tcont>::AddToCache(const CargoPacket *cp) |
| 198 | { |
| 199 | this->count += cp->count; |
| 200 | this->cargo_periods_in_transit += static_cast<uint64_t>(cp->periods_in_transit) * cp->count; |
| 201 | } |
| 202 | |
| 203 | /** Invalidates the cached data and rebuilds it. */ |
| 204 | template <class Tinst, class Tcont> |
no outgoing calls
no test coverage detected