Linkgraph: Replace three uses of std::list with std::deque/vector.
This commit is contained in:
@@ -2,11 +2,11 @@
|
||||
|
||||
#include "../stdafx.h"
|
||||
#include "demands.h"
|
||||
#include <list>
|
||||
#include <deque>
|
||||
|
||||
#include "../safeguards.h"
|
||||
|
||||
typedef std::list<NodeID> NodeList;
|
||||
typedef std::deque<NodeID> NodeList;
|
||||
|
||||
/**
|
||||
* Scale various things according to symmetric/asymmetric distribution.
|
||||
|
@@ -17,7 +17,7 @@
|
||||
#include "../widget_type.h"
|
||||
#include "linkgraph_base.h"
|
||||
#include <map>
|
||||
#include <list>
|
||||
#include <vector>
|
||||
|
||||
/**
|
||||
* Properties of a link between two stations.
|
||||
@@ -39,7 +39,7 @@ class LinkGraphOverlay {
|
||||
public:
|
||||
typedef std::map<StationID, LinkProperties> StationLinkMap;
|
||||
typedef std::map<StationID, StationLinkMap> LinkMap;
|
||||
typedef std::list<std::pair<StationID, uint> > StationSupplyList;
|
||||
typedef std::vector<std::pair<StationID, uint> > StationSupplyList;
|
||||
|
||||
static const uint8 LINK_COLOURS[];
|
||||
|
||||
|
@@ -14,7 +14,7 @@
|
||||
|
||||
#include "../cargo_type.h"
|
||||
#include "../vehicle_base.h"
|
||||
#include <list>
|
||||
#include <deque>
|
||||
#include <map>
|
||||
#include <set>
|
||||
|
||||
@@ -79,7 +79,7 @@ protected:
|
||||
bool operator<(const Hop &other) const;
|
||||
};
|
||||
|
||||
typedef std::list<RefitDesc> RefitList;
|
||||
typedef std::deque<RefitDesc> RefitList;
|
||||
typedef std::map<CargoID, uint> CapacitiesMap;
|
||||
typedef std::set<Hop> HopSet;
|
||||
|
||||
|
Reference in New Issue
Block a user