+
#include <config.h>
#include "math_iterator.h"
void MathIterator::operator++()
{
- MathCursorPos & top = back();
- MathArray & ar = top.par_->cell(top.idx_);
+ MathCursorPos & top = back();
+ MathArray & ar = top.par_->cell(top.idx_);
// move into the current inset if possible
// it is impossible for pos() == size()!
}
+bool MathIterator::normal() const
+{
+ return back().pos_ < cell().size();
+}
+
+
+void MathIterator::shrink(size_type i)
+{
+ if (i < size())
+ erase(begin() + i, end());
+}
+
+
bool operator==(MathIterator const & it, MathIterator const & jt)
{
return MathIterator::base_type(it) == MathIterator::base_type(jt);