diff options
author | Gard Spreemann <gspr@nonempty.org> | 2020-08-20 09:03:17 +0200 |
---|---|---|
committer | Gard Spreemann <gspr@nonempty.org> | 2020-08-20 09:03:17 +0200 |
commit | 4e1b4e9877732d1e1887674e48312902437f08c5 (patch) | |
tree | 7993cbc3ad71eed10da830aca85ef0b99d163bac /src/data/path.h | |
parent | 99f00a3ef9d1bd2d686b1521d25c9afedb880b34 (diff) | |
parent | 300267089b80785551c4721684280efe654ec834 (diff) |
Merge tag 'v2.1.6' into debian/sid
Diffstat (limited to 'src/data/path.h')
-rw-r--r-- | src/data/path.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/data/path.h b/src/data/path.h new file mode 100644 index 0000000..3c83170 --- /dev/null +++ b/src/data/path.h @@ -0,0 +1,25 @@ +#ifndef PATH_H +#define PATH_H + +#include "edge.h" + +#include <QObject> + +class Path : public QObject +{ + Q_OBJECT +public: + explicit Path(QObject *parent = nullptr); + int length() const; + void addEdge(Edge *e); + void removeEdges(); + bool isCycle() const; + + QVector<Edge *> edges() const; + +private: + QVector<Edge*> _edges; + +}; + +#endif // PATH_H |