1 /**
2  * \file InsetIterator.cpp
3  * This file is part of LyX, the document processor.
4  * Licence details can be found in the file COPYING.
5  *
6  * \author Alfredo Braunstein
7  * \author André Pönitz
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11 
12 #include <config.h>
13 
14 #include "InsetIterator.h"
15 
16 #include "support/lassert.h"
17 
18 
19 namespace lyx {
20 
21 
InsetIterator(Inset & inset)22 InsetIterator::InsetIterator(Inset & inset)
23 	: DocIterator(&inset.buffer(), &inset)
24 {
25 }
26 
27 
inset_iterator_begin(Inset & inset)28 InsetIterator inset_iterator_begin(Inset & inset)
29 {
30 	InsetIterator it = InsetIterator(inset);
31 	it.forwardInset();
32 	return it;
33 }
34 
35 
inset_iterator_end(Inset & inset)36 InsetIterator inset_iterator_end(Inset & inset)
37 {
38 	return InsetIterator(inset);
39 }
40 
41 
42 } // namespace lyx
43