Add missing include, due to André LASSERT change
[lyx.git] / src / InsetIterator.h
blob75bb08e9d33f46a0f41f624558b6bf4aab676bdb
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.
7 * \author André Pönitz
9 * Full author contact details are available in file CREDITS.
12 #ifndef INSETITERATOR_H
13 #define INSETITERATOR_H
15 #include "DocIterator.h"
18 namespace lyx {
21 class InsetIterator : public DocIterator
23 public:
24 ///
25 explicit InsetIterator(Inset & inset);
26 ///
27 void operator++() { forwardInset(); }
28 ///
29 void operator--();
30 ///
31 Inset * operator->() { return nextInset(); }
32 ///
33 Inset & operator*() { return *nextInset(); }
36 InsetIterator inset_iterator_begin(Inset & inset);
38 InsetIterator inset_iterator_end(Inset & inset);
42 } // namespace lyx
44 #endif