implemented clear() function for nodegraphs

Added a convenient (destructive) way of emptying a NodeGraph completely.
This commit is contained in:
itsmattkc
2019-11-23 08:48:59 +09:00
parent 9131b32be4
commit b1535b73b7
2 changed files with 15 additions and 2 deletions
+6 -1
View File
@@ -37,6 +37,11 @@ public:
*/
NodeGraph();
/**
* @brief Destructively destroys all nodes in the graph
*/
void Clear();
/**
* @brief Add a node to this graph
*
@@ -73,7 +78,7 @@ public:
/**
* @brief Retrieve a complete list of the nodes belonging to this graph
*/
QList<Node*> nodes();
const QList<Node*>& nodes();
/**
* @brief Returns whether a certain Node is in the graph or not