RideDistributor  0.0.1
 All Classes Namespaces Files Functions Variables Typedefs Macros Pages
SearchGraphNode.hpp
Go to the documentation of this file.
1 #ifndef SEARCH_GRAPH_NODE_H
2 #define SEARCH_GRAPH_NODE_H
3 
4 #include <memory>
5 #include <string>
6 #include <vector>
7 #include <list>
8 #include "Tensor.hpp"
9 
15 public:
16 
22  SearchGraphNode(std::unique_ptr<Tensor<unsigned>>& value): value(std::move(value)) {};
23 
30  SearchGraphNode(std::shared_ptr<SearchGraphNode>& parent,
31  std::unique_ptr<Tensor<unsigned>>& value)
32  : parent(parent), value(std::move(value)) {};
33 
41  void writeToFile(const std::string path, const unsigned fleetSize) const;
42 
43 private:
44 
46  std::shared_ptr<SearchGraphNode> parent;
47 
49  std::unique_ptr<Tensor<unsigned>> value;
50 
57  std::vector<std::list<unsigned>> createDataStructure(const unsigned fleetSize) const;
58 
59 };
60 
61 #endif // SEARCH_GRAPH_NODE_H
void writeToFile(const std::string path, const unsigned fleetSize) const
Definition: SearchGraphNode.cpp:4
Definition: SearchGraphNode.hpp:14
SearchGraphNode(std::shared_ptr< SearchGraphNode > &parent, std::unique_ptr< Tensor< unsigned >> &value)
Definition: SearchGraphNode.hpp:30
SearchGraphNode(std::unique_ptr< Tensor< unsigned >> &value)
Definition: SearchGraphNode.hpp:22
Definition: Tensor.hpp:37