2 * AccountTreeIterator.h - AccountJuggler
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 _AccountTreeIterator_h_
14 #define _AccountTreeIterator_h_
16 #include "CoreAttributesTreeIterator.h"
18 class AccountTreeIterator : public virtual CoreAttributesTreeIterator
21 AccountTreeIterator(Account* r, IterationMode m = leavesOnly)
22 : CoreAttributesTreeIterator(r, m) { }
23 virtual ~AccountTreeIterator() { }
25 Account* operator*() { return static_cast<Account*>(current); }
28 return static_cast<Account*>(CoreAttributesTreeIterator::operator++());