]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_iterator.h
architectural changes to tex2lyx
[lyx.git] / src / mathed / math_iterator.h
index 5c76edc6db9be0ae7fd77e61f71770078a8e5a53..91c39d4db1a082df157497d1964249bd0dda6452 100644 (file)
@@ -2,16 +2,17 @@
 #ifndef MATH_ITERATOR_H
 #define MATH_ITERATOR_H
 
-
 #include "math_pos.h"
+
 #include <vector>
 
+
 // this is used for traversing math insets
 
-class MathIterator : private std::vector<MathCursorPos> {
+class MathIterator : private std::vector<CursorPos> {
 public:
        // re-use inherited stuff
-       typedef std::vector<MathCursorPos> base_type;
+       typedef std::vector<CursorPos> base_type;
        using base_type::clear;
        using base_type::size;
        using base_type::push_back;
@@ -32,17 +33,17 @@ public:
        /// start with given inset
        explicit MathIterator(MathInset * p);
        ///
-       MathCursorPos const & operator*() const;
+       CursorPos const & operator*() const;
        ///
-       MathCursorPos const & operator->() const;
+       CursorPos const & operator->() const;
        /// move on one step
        void operator++();
        /// move on several steps
        void jump(difference_type);
        /// read access to top most inset
-       MathInset const * par() const;
+       MathInset const * inset() const;
        /// read access to top most inset
-       MathInset * par();
+       MathInset * inset();
        /// helper for iend
        void goEnd();
        /// read access to top most item