-#include "config.h"
-
-#include <iostream>
+#include "config.h"
#include "math_pos.h"
#include "math_inset.h"
#include "debug.h"
#include "support/LAssert.h"
+#include "support/LOstream.h"
-using std::ostream;
-
MathCursorPos::MathCursorPos()
: par_(0), idx_(0), pos_(0)
{}
}
-ostream & operator<<(ostream & os, MathCursorPos const & p)
+void MathCursorPos::setPos(MathArray::pos_type pos)
+{
+ pos_ = pos;
+}
+
+
+std::ostream & operator<<(std::ostream & os, MathCursorPos const & p)
{
- os << "(par: " << p.par_ << " idx: " << p.idx_ << " pos: " << p.pos_ << ")";
+ os << "(par: " << p.par_ << " idx: " << p.idx_ << " pos: " << p.pos_ << ')';
return os;
}