summaryrefslogtreecommitdiffstats
path: root/labb3/tsp/src/Tour.h
diff options
context:
space:
mode:
authorGustav Sörnäs <gusso230@student.liu.se>2020-08-17 19:34:09 +0200
committerGustav Sörnäs <gusso230@student.liu.se>2020-08-17 19:34:09 +0200
commit403ce5391e0fecc51bf50c86070ebc0e6d7e05af (patch)
tree248c47b8687baa820d4803784c15a2a6d43405c4 /labb3/tsp/src/Tour.h
parentc0a7e9ae20f29bb5d344cbb3923e0967034cadf1 (diff)
downloadtddd86-L3.tar.gz
add tsp codeL3
Diffstat (limited to 'labb3/tsp/src/Tour.h')
-rw-r--r--labb3/tsp/src/Tour.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/labb3/tsp/src/Tour.h b/labb3/tsp/src/Tour.h
new file mode 100644
index 0000000..6e4622f
--- /dev/null
+++ b/labb3/tsp/src/Tour.h
@@ -0,0 +1,22 @@
+#ifndef TOUR_H
+#define TOUR_H
+
+#include "Node.h"
+#include "Point.h"
+
+class Tour {
+public:
+ Tour();
+ ~Tour();
+ void show() const;
+ void draw(QGraphicsScene* scene) const;
+ int size() const;
+ double distance() const;
+ void insertNearest(Point p);
+ void insertSmallest(Point p);
+
+private:
+ Node *first;
+};
+
+#endif // TOUR_H