Skip to content
Snippets Groups Projects
Commit e9f28cab authored by Jakub Janák's avatar Jakub Janák
Browse files

renamed all header files from .h to .hpp

parent 67bff870
No related branches found
No related tags found
No related merge requests found
#include "Controller.h"
#include "../files/FileManager.h"
#include "Controller.hpp"
#include "../files/FileManager.hpp"
#include <iostream>
......
#ifndef CONTROLLER_H
#define CONTROLLER_H
#include "../graph/TSInstance.h"
#include "../graph/TSInstance.hpp"
#include <boost/program_options.hpp>
......
#include "FileManager.h"
#include "../graph/TSInstance.h"
#include "../graph/Node.h"
#include "../graph/Edge.h"
#include "FileManager.hpp"
#include "../graph/TSInstance.hpp"
#include "../graph/Node.hpp"
#include "../graph/Edge.hpp"
#include <graphviz/gvc.h>
#include <graphviz/cgraph.h>
......
......@@ -4,7 +4,7 @@
#include <string>
#include <__filesystem/directory_entry.h>
#include "../graph/TSInstance.h"
#include "../graph/TSInstance.hpp"
class FileManager {
public:
......
#include "../graph/TSInstance.h"
#include "../helper/Helper.h"
#include "../graph/TSInstance.hpp"
#include "../helper/Helper.hpp"
#include <fstream>
#include <iostream>
......
#include "Edge.h"
#include "Edge.hpp"
Edge::Edge(Node *sourceNode, Node *targetNode, const double weight){
this->sourceNode = sourceNode;
......
......@@ -3,7 +3,7 @@
#include <iostream>
#include "Node.h"
#include "Node.hpp"
class Edge {
Node *sourceNode;
......
#include "Graph.h"
#include "Graph.hpp"
Graph::Graph(std::vector<std::shared_ptr<Node>> nodes, std::vector<std::shared_ptr<Edge>> edges)
: nodes(std::move(nodes)), edges(std::move(edges)) {
......
#ifndef GRAPH_H
#define GRAPH_H
#include "Node.h"
#include "Edge.h"
#include "Node.hpp"
#include "Edge.hpp"
#include <vector>
......
#include "Node.h"
#include "Node.hpp"
#include "Edge.h"
#include "Edge.hpp"
Node::Node(std::string name) {
this->name = std::move(name);
......
File moved
#include "../files/FileManager.h"
#include "../helper/Helper.h"
#include "TSInstance.h"
#include "Node.h"
#include "../files/FileManager.hpp"
#include "../helper/Helper.hpp"
#include "TSInstance.hpp"
#include "Node.hpp"
#include <sstream>
......
#ifndef TSINSTANCE_H
#define TSINSTANCE_H
#include "Graph.h"
#include "Graph.hpp"
#include <boost/asio.hpp>
#include <thread>
......
#include "Helper.h"
#include "Helper.hpp"
#include <random>
int Helper::get_random_integer(const int from, const int to) {
......
#ifndef HELPER_H
#define HELPER_H
#include "../graph/Node.h"
#include "../graph/Node.hpp"
#include <set>
class Helper {
......
#include "controller/Controller.h"
#include "controller/Controller.hpp"
int main(int argc, char *argv[]) {
auto controller = Controller();
......
#include "catch.hpp"
#include "../graph/Edge.h"
#include "../graph/Edge.hpp"
TEST_CASE("Test The Operators '>' and '<'", "[all]") {
Node n1 = Node("A");
......
#include "catch.hpp"
#include "../graph/Graph.h"
#include "../graph/Graph.hpp"
TEST_CASE("Test Constructor", "[all]") {
SECTION("empty nodes vector should throw invalid_argument") {
......
#include "catch.hpp"
#include "../graph/Edge.h"
#include "../graph/Node.h"
#include "../graph/Edge.hpp"
#include "../graph/Node.hpp"
TEST_CASE("Get neighbour nodes should get nodes connected to our node with an edge") {
Node n1 = Node("a");
......
#include "catch.hpp"
#include "../graph/TSInstance.h"
#include "../helper/Helper.h"
#include "../graph/TSInstance.hpp"
#include "../helper/Helper.hpp"
TEST_CASE("Test Solve Correctness", "[all]") {
std::unique_ptr<TSInstance> instance;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment