RideDistributor
0.0.1
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Macros
Pages
src
Algorithm
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
;
38
Tensor<int>
y
;
40
Tensor<int>
t
;
42
Tensor<int>
p
;
43
};
44
45
}
46
47
#endif // TYPES_H
Types::CarData::p
Tensor< int > p
Definition:
Types.hpp:42
Types::CarData::y
Tensor< int > y
Definition:
Types.hpp:38
Types::CarData::CarData
CarData(CarData &other)
Definition:
Types.hpp:32
Tensor.hpp
Tensor< int >
Types::CarData::t
Tensor< int > t
Definition:
Types.hpp:40
Types::CarData::x
Tensor< int > x
Definition:
Types.hpp:33
Types::CarData
Definition:
Types.hpp:11
Types::CarData::CarData
CarData(const unsigned size)
Definition:
Types.hpp:17
Generated by
1.8.6