#ifndef MATH_POS_H
#define MATH_POS_H
-#ifdef __GNUG__
-#pragma interface
-#endif
#include <iosfwd>
#include "math_data.h"
/// Description of a position
-class MathCursorPos {
+class CursorPos {
public:
///
- MathCursorPos();
+ CursorPos();
///
- explicit MathCursorPos(MathInset *);
+ explicit CursorPos(MathInset *);
/// returns cell corresponding to this position
MathArray & cell() const;
public:
/// pointer to an inset
- MathInset * par_;
+ MathInset * inset_;
/// cell index of a position in this inset
MathArray::idx_type idx_;
/// position in this cell
};
/// test for equality
-bool operator==(MathCursorPos const &, MathCursorPos const &);
+bool operator==(CursorPos const &, CursorPos const &);
/// test for inequality
-bool operator!=(MathCursorPos const &, MathCursorPos const &);
+bool operator!=(CursorPos const &, CursorPos const &);
/// test for order
-bool operator<(MathCursorPos const &, MathCursorPos const &);
+bool operator<(CursorPos const &, CursorPos const &);
/// output
-std::ostream & operator<<(std::ostream &, MathCursorPos const &);
+std::ostream & operator<<(std::ostream &, CursorPos const &);
#endif