RideDistributor  0.0.1
 All Classes Namespaces Files Functions Variables Typedefs Macros Pages
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;
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
Tensor< int > startX
Definition: InputData.hpp:47
Definition: InputData.hpp:15
unsigned rows
Definition: InputData.hpp:35
unsigned nRides
Definition: InputData.hpp:41
unsigned fleetSize
Definition: InputData.hpp:39
static std::shared_ptr< InputData > genFromFile(const std::string path)
Definition: InputData.cpp:4
unsigned maxTime
Definition: InputData.hpp:45
Tensor< int > endX
Definition: InputData.hpp:51
Tensor< int > endY
Definition: InputData.hpp:53
Tensor< int > endT
Definition: InputData.hpp:57
Tensor< int > distances
Definition: InputData.hpp:59
Tensor< int > startT
Definition: InputData.hpp:55
std::string str() const
Definition: InputData.cpp:36
unsigned cols
Definition: InputData.hpp:37
unsigned bonus
Definition: InputData.hpp:43
Tensor< int > startY
Definition: InputData.hpp:49