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/Definitions.h"
13 #include "../core/ObjectData.h"
14 #include "../core/Tracklet.h"
15 
16 namespace algo
17 {
18  //TODO read minimal example
19  typedef boost::property<boost::edge_weight_t, double> EdgeProp;
20  typedef boost::property<boost::vertex_name_t, core::ObjectDataPtr>
21  VertexProp;
22  typedef boost::adjacency_list<
23  boost::listS, boost::vecS, boost::directedS, VertexProp, EdgeProp>
24  DirectedGraph;
25  typedef boost::graph_traits<DirectedGraph>::vertex_descriptor Vertex;
26  typedef boost::property_map<DirectedGraph, boost::vertex_index_t>::type
27  VertexIndexMap;
28  typedef boost::property_map<DirectedGraph, boost::vertex_name_t >::type
29  VertexValueMap;
30  typedef boost::iterator_property_map<Vertex*, VertexIndexMap, Vertex, Vertex&>
31  PredecessorMap;
32  typedef boost::iterator_property_map<double*, VertexIndexMap, double, double&>
33  DistanceMap;
34 };
35 
36 #endif //GBMOT_DEFINITIONS_H
Definition: Definitions.h:16