LyXCursor::LyXCursor()
: par_(), pos_(0), boundary_(false),
- x_(0), ix_(0), x_fix_(0), y_(0), iy_(0), row_(0)
+ x_(0), ix_(0), x_fix_(0), y_(0), iy_(0)
{}
}
-void LyXCursor::row(RowList::iterator r)
+void LyXCursor::irow(RowList::iterator r)
{
- row_ = r;
+ irow_ = r;
}
-RowList::iterator LyXCursor::row() const
+RowList::iterator LyXCursor::irow() const
{
- return row_;
+ return irow_;
}
-void LyXCursor::irow(RowList::iterator r)
+bool operator==(LyXCursor const & a, LyXCursor const & b)
{
- irow_ = r;
+ return a.par() == b.par()
+ && a.pos() == b.pos()
+ && a.boundary() == b.boundary();
}
-RowList::iterator LyXCursor::irow() const
+bool operator!=(LyXCursor const & a, LyXCursor const & b)
{
- return irow_;
+ return !(a == b);
}
+