summaryrefslogtreecommitdiffstats
path: root/labb3/tsp/src/Tour.h
diff options
context:
space:
mode:
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