* Merge another packet into this one. * @param cp Packet to be merged in. */
| 107 | * @param cp Packet to be merged in. |
| 108 | */ |
| 109 | void CargoPacket::Merge(CargoPacket *cp) |
| 110 | { |
| 111 | this->count += cp->count; |
| 112 | this->feeder_share += cp->feeder_share; |
| 113 | delete cp; |
| 114 | } |
| 115 | |
| 116 | /** |
| 117 | * Reduce the packet by the given amount and remove the feeder share. |
no outgoing calls
no test coverage detected