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
DataHandlers
InputData.hpp
Go to the documentation of this file.
1
#ifndef INPUTDATA_H
2
#define INPUTDATA_H
3
4
#include <fstream>
5
#include <string>
6
#include <memory>
7
#include "
Tensor.hpp
"
8
15
struct
InputData
{
16
25
static
std::shared_ptr<InputData>
genFromFile
(
const
std::string path);
26
32
std::string
str
()
const
;
33
35
unsigned
rows
;
37
unsigned
cols
;
39
unsigned
fleetSize
;
41
unsigned
nRides
;
43
unsigned
bonus
;
45
unsigned
maxTime
;
47
Tensor<int>
startX
;
49
Tensor<int>
startY
;
51
Tensor<int>
endX
;
53
Tensor<int>
endY
;
55
Tensor<int>
startT
;
57
Tensor<int>
endT
;
59
Tensor<int>
distances
;
60
61
private
:
62
75
InputData
(
76
const
unsigned
rows
,
77
const
unsigned
cols
,
78
const
unsigned
fleetSize
,
79
const
unsigned
nRides
,
80
const
unsigned
bonus
,
81
const
unsigned
maxTime
,
82
std::fstream& file
83
);
84
85
};
86
87
#endif // INPUTDATA_H
InputData::startX
Tensor< int > startX
Definition:
InputData.hpp:47
InputData
Definition:
InputData.hpp:15
InputData::rows
unsigned rows
Definition:
InputData.hpp:35
InputData::nRides
unsigned nRides
Definition:
InputData.hpp:41
InputData::fleetSize
unsigned fleetSize
Definition:
InputData.hpp:39
InputData::genFromFile
static std::shared_ptr< InputData > genFromFile(const std::string path)
Definition:
InputData.cpp:4
InputData::maxTime
unsigned maxTime
Definition:
InputData.hpp:45
InputData::endX
Tensor< int > endX
Definition:
InputData.hpp:51
InputData::endY
Tensor< int > endY
Definition:
InputData.hpp:53
InputData::endT
Tensor< int > endT
Definition:
InputData.hpp:57
InputData::distances
Tensor< int > distances
Definition:
InputData.hpp:59
InputData::startT
Tensor< int > startT
Definition:
InputData.hpp:55
InputData::str
std::string str() const
Definition:
InputData.cpp:36
InputData::cols
unsigned cols
Definition:
InputData.hpp:37
Tensor.hpp
Tensor< int >
InputData::bonus
unsigned bonus
Definition:
InputData.hpp:43
InputData::startY
Tensor< int > startY
Definition:
InputData.hpp:49
Generated by
1.8.6