3 * \file insetiterator.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS.
12 #ifndef INSETITERATOR_H
13 #define INSETITERATOR_H
15 #include "dociterator.h"
21 class InsetIterator : public DocIterator
25 explicit InsetIterator(InsetBase & inset);
27 void operator++() { forwardInset(); }
31 InsetBase * operator->() { return nextInset(); }
33 InsetBase & operator*() { return *nextInset(); }
36 InsetIterator inset_iterator_begin(InsetBase & inset);
38 InsetIterator inset_iterator_end(InsetBase & inset);