Linkgraph: Replace three uses of std::list with std::deque/vector.

This commit is contained in:
Jonathan G Rennison
2015-11-26 01:02:52 +00:00
parent 564744d427
commit 3a28be7841
3 changed files with 6 additions and 6 deletions

View File

@@ -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.

View File

@@ -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[];

View File

@@ -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;