summaryrefslogtreecommitdiff
path: root/src/data/path.h
diff options
context:
space:
mode:
authorGard Spreemann <gspr@nonempty.org>2020-08-20 09:03:17 +0200
committerGard Spreemann <gspr@nonempty.org>2020-08-20 09:03:17 +0200
commit4e1b4e9877732d1e1887674e48312902437f08c5 (patch)
tree7993cbc3ad71eed10da830aca85ef0b99d163bac /src/data/path.h
parent99f00a3ef9d1bd2d686b1521d25c9afedb880b34 (diff)
parent300267089b80785551c4721684280efe654ec834 (diff)
Merge tag 'v2.1.6' into debian/sid
Diffstat (limited to 'src/data/path.h')
-rw-r--r--src/data/path.h25
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