]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_iterator.h
Geof Piroux's patch for Mathematica support
[lyx.git] / src / mathed / math_iterator.h
index 7b484b030b41be4c37166a333024513a6c3c0510..d30bd4752998ba59c2d499f5935e6c45515d40d5 100644 (file)
@@ -22,10 +22,10 @@ public:
        void operator++();
        /// move on several steps
        void jump(MathInset::difference_type);
-       /// read access to top most item
-       MathCursorPos const & position() const;
+       /// read access to top most item (inline after running gprof!)
+       MathCursorPos const & position() const { return cursor_.back(); }
        /// write access to top most item
-       MathCursorPos & position();
+       MathCursorPos & position() { return cursor_.back(); }
        /// read access to full path
        MathCursor::cursor_type const & cursor() const;
        /// read access to top most inset
@@ -37,11 +37,7 @@ public:
        /// read access to top most item
        MathArray const & cell() const;
 
-private:       
-       /// read access to top most item
-       MathXArray const & xcell() const;
-       /// write access to top most item
-       MathInset * nextInset() const;
+private:
        /// own level down
        void push(MathInset *);
        /// own level up