4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Lars Gullik Bjønnes
9 * Full author contact details are available in file CREDITS.
15 #include "support/types.h"
32 InsetTable(pos_type p, Inset * i) : pos(p), inset(i) {}
39 typedef std::vector<InsetTable> List;
41 typedef List::iterator iterator;
43 typedef List::const_iterator const_iterator;
48 iterator begin() { return list_.begin(); }
50 iterator end() { return list_.end(); }
52 const_iterator begin() const { return list_.begin(); }
54 const_iterator end() const { return list_.end(); }
56 bool empty() const { return list_.empty(); }
58 iterator insetIterator(pos_type pos);
60 const_iterator insetIterator(pos_type pos) const;
62 void insert(Inset * inset, pos_type pos);
64 void erase(pos_type pos);
66 Inset * release(pos_type);
68 Inset * get(pos_type pos) const;
70 void increasePosAfterPos(pos_type pos);
72 void decreasePosAfterPos(pos_type pos);
74 /// replicate ourselves.
75 /// Warning: this should be used with care, only
76 /// Paragraph::Pimpl should use it actually.