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"
33 InsetTable(pos_type p, InsetBase * i) : pos(p), inset(i) {}
40 typedef std::vector<InsetTable> List;
42 typedef List::iterator iterator;
44 typedef List::const_iterator const_iterator;
49 iterator begin() { return list_.begin(); }
51 iterator end() { return list_.end(); }
53 const_iterator begin() const { return list_.begin(); }
55 const_iterator end() const { return list_.end(); }
57 bool empty() const { return list_.empty(); }
59 iterator insetIterator(pos_type pos);
61 const_iterator insetIterator(pos_type pos) const;
63 void insert(InsetBase * inset, pos_type pos);
65 void erase(pos_type pos);
67 InsetBase * release(pos_type);
69 InsetBase * get(pos_type pos) const;
71 void increasePosAfterPos(pos_type pos);
73 void decreasePosAfterPos(pos_type pos);