diff options
| author | Tim Redfern <tim@eclectronics.org> | 2013-09-09 15:02:57 +0100 |
|---|---|---|
| committer | Tim Redfern <tim@eclectronics.org> | 2013-09-09 15:02:57 +0100 |
| commit | f0a817e8ac52a22491236cbf83d741c6e92f58d1 (patch) | |
| tree | 8b563172ca524ca0de2b6505779deaad8d4ebe62 /rotord/src/graph.h | |
| parent | 7a8504a5f76b28e2ea6d4d9b4658cfe56b49fb57 (diff) | |
graph nodes management
Diffstat (limited to 'rotord/src/graph.h')
| -rw-r--r-- | rotord/src/graph.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/rotord/src/graph.h b/rotord/src/graph.h index 231d784..4c68eab 100644 --- a/rotord/src/graph.h +++ b/rotord/src/graph.h @@ -24,6 +24,13 @@ namespace Rotor { framerate=25.0f; cancelled=false; }; + ~Graph(){ clear(); }; + void clear(){ + for (auto n: nodes) { + delete n.second; + } + nodes.clear(); + } string uid; //every version of a graph has a UUID, no particular need to actually read its data(?) //?? is it faster than using strings?? string description; |
