]> git.lyx.org Git - lyx.git/blobdiff - src/pariterator.h
clone NVI, other small stuff
[lyx.git] / src / pariterator.h
index 4ce2b05994d379408e9a05e5e8067382607d01ff..5f8281de7ce0fa85fd27617f65c1f434b99f1a00 100644 (file)
@@ -31,6 +31,17 @@ class ParIterator : public std::iterator<std::forward_iterator_tag, Paragraph>,
                    public DocIterator
 {
 public:
+       typedef std::iterator<std::forward_iterator_tag, Paragraph> StdIt;
+
+       typedef StdIt::value_type value_type;
+       typedef StdIt::difference_type difference_type;
+       typedef StdIt::pointer pointer;
+       typedef StdIt::reference reference;
+
+       ///
+       ParIterator() : DocIterator() {}
+
+
        ///
        ParIterator(InsetBase &, lyx::par_type pit);
        ///
@@ -38,12 +49,14 @@ public:
        ///
        ParIterator(DocIterator const &);
 
-       ///
-       void operator=(ParIterator const &);
+       /// This really should be implemented...
+       //ParIterator & operator=(ParIterator const &);
        ///
        ParIterator & operator++();
        ///
-       ParIterator & operator--();
+       ParIterator operator++(int);
+       /// See comment in pariterator.C
+       //ParIterator & operator--();
        ///
        Paragraph & operator*() const;
        ///