5 #include "math_xdata.h"
8 /// Description of a position
14 explicit MathCursorPos(MathAtom &);
16 /// returns cell corresponding to this position
17 MathArray & cell() const;
18 /// returns cell corresponding to this position
19 MathArray & cell(MathArray::idx_type idx) const;
20 /// returns xcell corresponding to this position
21 MathXArray & xcell() const;
22 /// returns xcell corresponding to this position
23 MathXArray & xcell(MathArray::idx_type idx) const;
30 /// pointer to an inset
32 /// cell index of a position in this inset
33 MathArray::idx_type idx_;
34 /// position in this cell
35 MathArray::pos_type pos_;
39 bool operator==(MathCursorPos const &, MathCursorPos const &);
40 /// test for inequality
41 bool operator!=(MathCursorPos const &, MathCursorPos const &);
43 bool operator<(MathCursorPos const &, MathCursorPos const &);
45 std::ostream & operator<<(std::ostream &, MathCursorPos const &);