summaryrefslogtreecommitdiff
path: root/src/data/path.h
diff options
context:
space:
mode:
authorAleks Kissinger <aleks0@gmail.com>2020-04-12 16:43:44 +0100
committerAleks Kissinger <aleks0@gmail.com>2020-04-12 16:43:44 +0100
commitd9ec25d1bcea4e45d1965e95bb3099c3864e04a0 (patch)
tree181ddebe4d8c47d751d7cdbb0e27da8326d93d35 /src/data/path.h
parentc56b682750e9f2a911a841e89e4e51b7d0608ab5 (diff)
parsing and outputting complex paths
Diffstat (limited to 'src/data/path.h')
-rw-r--r--src/data/path.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/data/path.h b/src/data/path.h
index 381d486..3c83170 100644
--- a/src/data/path.h
+++ b/src/data/path.h
@@ -10,6 +10,12 @@ 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;