OSDN Git Service

fix compile problem
[tjqt4port/tj2qt4.git] / taskjuggler / AccountTreeIterator.h
1 /*
2  * AccountTreeIterator.h - AccountJuggler
3  *
4  * Copyright (c) 2001, 2002, 2003, 2004 by Chris Schlaeger <cs@kde.org>
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 _AccountTreeIterator_h_
14 #define _AccountTreeIterator_h_
15
16 #include "CoreAttributesTreeIterator.h"
17
18 class AccountTreeIterator : public virtual CoreAttributesTreeIterator
19 {
20 public:
21     AccountTreeIterator(Account* r, IterationMode m = leavesOnly)
22         : CoreAttributesTreeIterator(r, m) { }
23     virtual ~AccountTreeIterator() { }
24
25     Account* operator*() { return static_cast<Account*>(current); }
26     Account* operator++()
27     {
28         return static_cast<Account*>(CoreAttributesTreeIterator::operator++());
29     }
30 } ;
31
32 #endif
33