RideDistributor  0.0.1
 All Classes Namespaces Files Functions Variables Typedefs Macros Pages
Types.hpp
Go to the documentation of this file.
1 #ifndef TYPES_H
2 #define TYPES_H
3 
4 #include "Tensor.hpp"
5 
6 namespace Types {
7 
11 struct CarData {
17  CarData(const unsigned size) :
18  x({size}), y({size}), t({size}), p({size}) {
19  for(unsigned i = 0; i < size; ++i) {
20  x(i) = 0;
21  y(i) = 0;
22  t(i) = 0;
23  p(i) = 0;
24  }
25  };
26 
32  CarData(CarData& other):
33  x(other.x), y(other.y), t(other.t), p(other.p) {};
34 
36  Tensor<int> x;
43 };
44 
45 }
46 
47 #endif // TYPES_H
Tensor< int > p
Definition: Types.hpp:42
Tensor< int > y
Definition: Types.hpp:38
CarData(CarData &other)
Definition: Types.hpp:32
Tensor< int > t
Definition: Types.hpp:40
Tensor< int > x
Definition: Types.hpp:33
Definition: Types.hpp:11
CarData(const unsigned size)
Definition: Types.hpp:17