-///
-class ParagraphList {
-public:
- ///
- class iterator {
- public:
- ///
- typedef std::bidirectional_iterator_tag iterator_category;
- ///
- typedef Paragraph * value_type;
- ///
- typedef ptrdiff_t difference_type;
- ///
- typedef Paragraph * pointer;
- ///
- typedef Paragraph & reference;
- ///
- iterator();
- ///
- iterator(value_type);
- ///
- reference operator*();
- ///
- pointer operator->();
- ///
- iterator & operator++();
- ///
- iterator operator++(int);
- ///
- iterator & operator--();
- ///
- iterator operator--(int);
- private:
- ///
- Paragraph * ptr;
- };
- ///
- ParagraphList();
- ///
- ParagraphList(ParagraphList const &);
- ///
- ParagraphList & operator=(ParagraphList const &);
- ///
- iterator insert(iterator it, Paragraph * par);
- ///
- void insert(iterator pos, iterator beg, iterator end);
- ///
- void assign(iterator beg, iterator end);
- ///
- void splice(iterator pos, ParagraphList & pl);
- ///
- void clear();
- ///
- void erase(iterator it);
- ///
- iterator begin();
- ///
- iterator begin() const;
- ///
- iterator end();
- ///
- iterator end() const;
- ///
- void set(Paragraph *);
- ///
- void push_back(Paragraph *);
- ///
- Paragraph const & front() const;
- ///
- Paragraph & front();
- ///
- Paragraph const & back() const;
- ///
- Paragraph & back();
- ///
- int size() const;
- ///
- bool empty() const;
-private:
- ///
- Paragraph * parlist;