remove last of NO_STD_LIST stuff

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7103 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Lars Gullik Bjønnes 2003-06-04 13:04:24 +00:00
parent a5c7dde1e4
commit a89f41c028
2 changed files with 5 additions and 152 deletions

View File

@ -1,3 +1,7 @@
2003-06-04 Lars Gullik Bjønnes <larsbj@lyx.org>
* ParagraphList.h: remove last remnants of NO_STD_LIST
2003-06-03 Angus Leeming <leeming@lyx.org>
* factory.C (createInset): small change to the way InsetExternal's params

View File

@ -3,10 +3,6 @@
#ifndef PARAGRAPH_LIST_H
#define PARAGRAPH_LIST_H
//#define NO_STD_LIST 1
#ifndef NO_STD_LIST
#include "paragraph.h"
#include <list>
@ -17,151 +13,4 @@ struct ParagraphList : public std::list<Paragraph>
typedef std::pair<ParagraphList::iterator, int> PitPosPair;
#else
class Paragraph;
#include <iterator>
#include <utility>
///
class ParagraphList {
public:
///
class iterator {
public:
friend class ParagraphList;
///
typedef std::bidirectional_iterator_tag iterator_category;
///
typedef Paragraph * value_type;
///
typedef ptrdiff_t difference_type;
///
typedef Paragraph * pointer;
///
typedef Paragraph & reference;
///
iterator();
///
reference operator*();
///
pointer operator->();
///
iterator & operator++();
///
iterator operator++(int);
///
iterator & operator--();
///
iterator operator--(int);
private:
///
iterator(value_type);
///
Paragraph * ptr;
};
///
class const_iterator {
public:
friend class ParagraphList;
///
typedef std::bidirectional_iterator_tag iterator_category;
///
typedef Paragraph * value_type;
///
typedef ptrdiff_t difference_type;
///
typedef Paragraph const * const_pointer;
///
typedef Paragraph const & const_reference;
///
const_iterator();
///
const_reference operator*();
///
const_pointer operator->();
///
const_iterator & operator++();
///
const_iterator operator++(int);
///
const_iterator & operator--();
///
const_iterator operator--(int);
private:
///
const_iterator(value_type);
///
Paragraph * ptr;
};
///
ParagraphList();
///
ParagraphList(ParagraphList const &);
///
ParagraphList & operator=(ParagraphList const &);
///
iterator insert(iterator it, Paragraph const & par);
///
void insert(iterator pos, iterator beg, iterator end);
///
void assign(iterator beg, iterator end);
///
void splice(iterator pos, ParagraphList & pl);
///
void clear();
///
iterator erase(iterator it);
///
iterator erase(iterator first, iterator last);
///
iterator begin();
///
const_iterator begin() const;
///
iterator end();
///
const_iterator end() const;
///
void push_back(Paragraph const &);
///
Paragraph const & front() const;
///
Paragraph & front();
///
Paragraph const & back() const;
///
Paragraph & back();
///
int size() const;
///
bool empty() const;
private:
///
Paragraph * parlist;
};
typedef std::pair<ParagraphList::iterator, int> PitPosPair;
///
bool operator==(ParagraphList::iterator const & i1,
ParagraphList::iterator const & i2);
///
bool operator!=(ParagraphList::iterator const & i1,
ParagraphList::iterator const & i2);
///
bool operator==(ParagraphList::const_iterator const & i1,
ParagraphList::const_iterator const & i2);
///
bool operator!=(ParagraphList::const_iterator const & i1,
ParagraphList::const_iterator const & i2);
#endif
#endif