2 * TaskTreeIterator.h - TaskJuggler
4 * Copyright (c) 2001, 2002, 2003, 2004 by Chris Schlaeger <cs@kde.org>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of version 2 of the GNU General Public License as
8 * published by the Free Software Foundation.
13 #ifndef _TaskTreeIterator_h_
14 #define _TaskTreeIterator_h_
16 #include "CoreAttributesTreeIterator.h"
18 class TaskTreeIterator : public virtual CoreAttributesTreeIterator
21 TaskTreeIterator(Task* r, IterationMode m = leavesOnly)
22 : CoreAttributesTreeIterator(r, m) { }
23 virtual ~TaskTreeIterator() { }
25 Task* operator*() { return static_cast<Task*>(current); }
28 return static_cast<Task*>(CoreAttributesTreeIterator::operator++());