summaryrefslogtreecommitdiff
path: root/src/tasktree.cc
diff options
context:
space:
mode:
authorJonas Suhr Christensen <jsc@umbraculum.org>2012-03-30 16:04:03 +0200
committerJonas Suhr Christensen <jsc@umbraculum.org>2012-03-30 16:04:03 +0200
commitb320cc10871217d51e3458bf85a22e7d50ee4aec (patch)
tree6afc5a990d1b719ac178e8ebd09de3e7b3114ad2 /src/tasktree.cc
parent85bc3a07c275ef60fb40bc55562b12ab2e21841d (diff)
Added a bit of debug and implemented messagehandler.
Diffstat (limited to 'src/tasktree.cc')
-rw-r--r--src/tasktree.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/tasktree.cc b/src/tasktree.cc
index 3aa13f4..0df23d6 100644
--- a/src/tasktree.cc
+++ b/src/tasktree.cc
@@ -70,6 +70,8 @@ TaskIdList TaskTree::insertAsChild(taskid_t parentid, taskid_t id, task_t data)
}
finish:
+ printf("Child %d added to %d, affecting %d nodes\n",
+ id, parentid, affectedNodes.size());
return affectedNodes;
}
@@ -79,6 +81,18 @@ TaskIdList TaskTree::remove(taskid_t id)
WARN(tasktree, "Feature not implemneted yet\n");
TaskIdList affectedNodes;
return affectedNodes;
+
+ /*
+ try {
+ node_t* node = id2node.at(id);
+
+ }
+ catch (std::exception& e) {
+ throw std::exception();
+ }
+
+ return affectedNodes;
+ */
}
TaskIdList TaskTree::move(taskid_t id, taskid_t toid)