* \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
#define ITERATORS_H
-#include "ParagraphList.h"
+#include "ParagraphList_fwd.h"
#include <boost/scoped_ptr.hpp>
///
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;
///
///
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