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"
30 InsetTable(lyx::pos_type p
, InsetBase
* i
) : pos(p
), inset(i
) {}
37 typedef std::vector
<InsetTable
> List
;
39 typedef List::iterator iterator
;
41 typedef List::const_iterator const_iterator
;
46 iterator
begin() { return list_
.begin(); }
48 iterator
end() { return list_
.end(); }
50 const_iterator
begin() const { return list_
.begin(); }
52 const_iterator
end() const { return list_
.end(); }
54 bool empty() const { return list_
.empty(); }
56 iterator
insetIterator(lyx::pos_type pos
);
58 const_iterator
insetIterator(lyx::pos_type pos
) const;
60 void insert(InsetBase
* inset
, lyx::pos_type pos
);
62 void erase(lyx::pos_type pos
);
64 InsetBase
* release(lyx::pos_type
);
66 InsetBase
* get(lyx::pos_type pos
) const;
68 void increasePosAfterPos(lyx::pos_type pos
);
70 void decreasePosAfterPos(lyx::pos_type pos
);