Debian Codegraph @

src/plugins/schedulers/tj/taskjuggler/TaskTreeIterator.h

raw
1 /*
2 * TaskTreeIterator.h - TaskJuggler
3 *
4 * SPDX-FileCopyrightText: 2001, 2002, 2003, 2004 Chris Schlaeger <[email protected]>
5 *
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.
9 *
10 * $Id$
11 */
12
13 #ifndef _TaskTreeIterator_h_
14 #define _TaskTreeIterator_h_
15
16 #include "CoreAttributesTreeIterator.h"
17
18 class TaskTreeIterator : public virtual CoreAttributesTreeIterator
19 {
20 public:
21 explicit TaskTreeIterator(Task* r, IterationMode m = leavesOnly)
22 : CoreAttributesTreeIterator(r, m) { }
23 virtual ~TaskTreeIterator() { }
24
25 Task* operator*() { return static_cast<Task*>(current); }
26 Task* operator++()
27 {
28 return static_cast<Task*>(CoreAttributesTreeIterator::operator++());
29 }
30 } ;
31
32 #endif
33