comparison engine/core/pathfinder/routepather/routepather.h @ 292:6362c6812580

combine routepathersearch and search class to clean up the code.
author wenlin_fife@33b003aa-7bff-0310-803a-e67f0ece8222
date Fri, 26 Jun 2009 18:04:57 +0000
parents f970f7dab2dd
children 1465536aec94
comparison
equal deleted inserted replaced
291:89c71d202ab7 292:6362c6812580
90 SearchSpace* getSearchSpace(Layer * const layer); 90 SearchSpace* getSearchSpace(Layer * const layer);
91 91
92 std::string getName() const { return "RoutePather"; }; 92 std::string getName() const { return "RoutePather"; };
93 private: 93 private:
94 typedef std::list<Location> Path; 94 typedef std::list<Location> Path;
95 typedef PriorityQueue<Search*, int> SessionQueue; 95 typedef PriorityQueue<RoutePatherSearch*, int> SessionQueue;
96 typedef std::list<int> SessionList; 96 typedef std::list<int> SessionList;
97 typedef std::map<int, Path> PathMap; 97 typedef std::map<int, Path> PathMap;
98 typedef std::map<Layer*, SearchSpace*> SearchSpaceMap; 98 typedef std::map<Layer*, SearchSpace*> SearchSpaceMap;
99 typedef std::map<int, Location> LocationMap; 99 typedef std::map<int, Location> LocationMap;
100 /** Makes the instance follow the given path. 100 /** Makes the instance follow the given path.