From 9fdb88962fed69472a88861cf08d9559e8dff2a4 Mon Sep 17 00:00:00 2001 From: fonsinchen Date: Sun, 21 Sep 2014 16:19:52 +0000 Subject: (svn r26891) -Codechange: Add methods to retrieve flows from a FlowStatMap --- src/station_base.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/station_base.h') diff --git a/src/station_base.h b/src/station_base.h index 6d6522840..b832a3c19 100644 --- a/src/station_base.h +++ b/src/station_base.h @@ -149,6 +149,11 @@ private: /** Flow descriptions by origin stations. */ class FlowStatMap : public std::map { public: + uint GetFlow() const; + uint GetFlowVia(StationID via) const; + uint GetFlowFrom(StationID from) const; + uint GetFlowFromVia(StationID from, StationID via) const; + void AddFlow(StationID origin, StationID via, uint amount); void PassOnFlow(StationID origin, StationID via, uint amount); StationIDStack DeleteFlows(StationID via); @@ -268,8 +273,6 @@ struct GoodsEntry { return HasBit(this->status, GES_RATING); } - uint GetSumFlowVia(StationID via) const; - /** * Get the best next hop for a cargo packet from station source. * @param source Source of the packet. -- cgit v1.2.3-54-g00ecf