Tracore
Definitions.h
1 //
2 // Created by wrede on 25.04.16.
3 //
4 
5 #ifndef GBMOT_DEFINITIONS_H
6 #define GBMOT_DEFINITIONS_H
7 
8 
9 #include <boost/graph/properties.hpp>
10 #include <boost/graph/graph_traits.hpp>
11 #include <boost/graph/adjacency_list.hpp>
12 #include "../core/ObjectData.h"
13 #include "../core/Tracklet.h"
14 
15 namespace algo
16 {
17  //TODO read minimal example
18  //TODO check types (move to core)
19  typedef boost::property<boost::edge_weight_t, double> EdgeProp;
20  typedef boost::property<boost::vertex_name_t, core::ObjectData>
21  VertexProp;
22  typedef boost::adjacency_list<
23  boost::listS, boost::vecS, boost::directedS,
24  VertexProp, EdgeProp>
25  DirectedGraph;
26  typedef boost::graph_traits<DirectedGraph>::vertex_descriptor Vertex;
27  typedef boost::property_map<DirectedGraph, boost::vertex_index_t>::type
28  VertexIndexMap;
29  typedef boost::property_map<DirectedGraph, boost::vertex_name_t >::type
30  VertexValueMap;
31  typedef boost::iterator_property_map<Vertex*, VertexIndexMap, Vertex, Vertex&>
32  PredecessorMap;
33  typedef boost::iterator_property_map<double*, VertexIndexMap, double, double&>
34  DistanceMap;
35 };
36 
37 #endif //GBMOT_DEFINITIONS_H
Definition: Definitions.h:15