]> git.lyx.org Git - lyx.git/blobdiff - src/iterators.h
Move #includes out of header files.
[lyx.git] / src / iterators.h
index 5cca3f717d6dc3e2fa4de25696a0a0467960c646..b9446a94ce01999c062ebf9cff5b0e87c7dd7627 100644 (file)
@@ -6,7 +6,7 @@
  * \author unknown
  * \author Lars Gullik Bjønnes
  *
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
  */
 
 #ifndef ITERATORS_H
@@ -25,11 +25,19 @@ public:
        ///
        ParIterator(ParIterator const &);
        ///
+       void operator=(ParIterator const &);
+       ///
        ParIterator & operator++();
        ///
-       ParagraphList::iterator operator*() const;
+       Paragraph & operator*() const;
        ///
        ParagraphList::iterator operator->() const;
+       /// This gives us the top-most parent paragraph
+       ParagraphList::iterator outerPar() const;
+       ///
+       ParagraphList::iterator pit() const;
+       ///
+       ParagraphList & plist() const;
        ///
        size_t size() const;
        ///
@@ -58,11 +66,15 @@ public:
        ///
        ParConstIterator & operator++();
        ///
-       ParagraphList::iterator operator*() const;
+       ParagraphList::const_iterator pit() const;
        ///
-       ParagraphList::iterator operator->() const;
-
+       Paragraph const & operator*() const;
+       ///
+       ParagraphList::const_iterator operator->() const;
        ///
+       ParagraphList const & plist() const;
+
+       /// depth of nesting
        size_t size() const;
        ///
        friend