Pathfinder
Using.h
Go to the documentation of this file.
1 
9 #ifndef USING_H
10 #define USING_H
11 
12 #include <list>
13 #include <unordered_map>
14 #include <string>
15 
16 #include <boost/graph/adjacency_list.hpp>
17 
18 #include "GraphVertex.h"
19 #include "GraphEdge.h"
20 
21 namespace Pathfinder {
22 
26  enum drivable : short {person, bicycle, car, truck, none};
27 
28 
32  enum coordinate : short {x, y, z};
33 
34 
38  using Graph = boost::adjacency_list<boost::vecS,
39  boost::vecS,
40  boost::undirectedS,
41  GraphVertex,
43 
44 
48  using Vertex = boost::graph_traits<Graph>::vertex_descriptor;
49 
50 
54  using Edge = boost::graph_traits<Graph>::edge_descriptor;
55 
56 
62  const std::string red("\033[0;31m");
63 
64 
70  const std::string green("\033[1;32m");
71 
72 
78  const std::string yellow("\033[1;33m");
79 
80 
86  const std::string cyan("\033[0;36m");
87 
88 
94  const std::string magenta("\033[0;35m");
95 
96 
102  const std::string reset("\033[0m");
103 
104 }
105 
106 #endif
Definition: Using.h:26
Definition: Using.h:32
This struct declares all infromation that shall be stored for each edge of a graph.
Definition: GraphEdge.h:19
coordinate
Easier notation of coordinates.
Definition: Using.h:32
Definition: Using.h:32
Definition: AABB.cpp:21
const std::string red("\3[0;31m")
Color definition for prettier console output.
const std::string cyan("\3[0;36m")
Color definition for prettier console output.
This file declares the struct GraphEdge that contains all information that shall be stored for each e...
const std::string magenta("\3[0;35m")
Color definition for prettier console output.
Definition: Using.h:32
const std::string green("\3[1;32m")
Color definition for prettier console output.
boost::graph_traits< Graph >::vertex_descriptor Vertex
Shorthand notation for the graph vertices.
Definition: Using.h:48
boost::adjacency_list< boost::vecS, boost::vecS, boost::undirectedS, GraphVertex, GraphEdge > Graph
Shorthand notation for the graph used.
Definition: Using.h:42
const std::string yellow("\3[1;33m")
Color definition for prettier console output.
boost::graph_traits< Graph >::edge_descriptor Edge
Shorthand notation for the graph edges.
Definition: Using.h:54
This struct declares all infroamtion that shall be stored for each vertex of a graph.
Definition: GraphVertex.h:21
Definition: Using.h:26
Definition: Using.h:26
Definition: Using.h:26
Definition: Using.h:26
drivable
This indicates the passability of edges.
Definition: Using.h:26
const std::string reset("\3[0m")
Color definition for prettier console output.
This file declares the struct GraphVertex that contains all information that shall be stored for each...