summaryrefslogtreecommitdiffstats
path: root/labb3/tsp/src/Tour.h
blob: 6e4622fd32c9a76172d07836a0c5689421d1a59f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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