]> git.lyx.org Git - lyx.git/blob - src/insetiterator.h
compile fix
[lyx.git] / src / insetiterator.h
1 // -*- C++ -*-
2 /**
3  * \file insetiterator.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author André Pönitz
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef INSETITERATOR_H
13 #define INSETITERATOR_H
14
15 #include "dociterator.h"
16
17
18 class InsetIterator : public DocumentIterator
19 {
20 public:
21         ///
22         InsetIterator() {}
23         ///
24         explicit InsetIterator(InsetBase & inset);
25         ///
26         void operator++() { forwardInset(); }
27         ///
28         void operator--();
29         ///
30         InsetBase * operator->() { return nextInset(); }
31         ///
32         InsetBase & operator*() { return *nextInset(); }
33 };
34
35 #endif