#include "support/types.h"
-
class Inset;
class BufferView;
};
///
typedef std::vector<InsetTable> List;
-
///
- class iterator {
- public:
- ///
- iterator() {}
- //
- iterator(List::iterator const & iter);
- ///
- iterator & operator++();
- ///
- iterator operator++(int);
- ///
- lyx::pos_type getPos() const;
- ///
- Inset * getInset() const;
- ///
- void setInset(Inset * inset);
- ///
- friend bool operator==(iterator const &, iterator const &);
- private:
- ///
- List::iterator it;
- };
+ typedef List::iterator iterator;
+ ///
+ typedef List::const_iterator const_iterator;
+
///
~InsetList();
///
///
iterator end();
///
- iterator begin() const;
+ const_iterator begin() const;
///
- iterator end() const;
+ const_iterator end() const;
///
iterator insetIterator(lyx::pos_type pos);
///
List list;
};
-///
-bool operator==(InsetList::iterator const & i1,
- InsetList::iterator const & i2);
-///
-bool operator!=(InsetList::iterator const & i1,
- InsetList::iterator const & i2);
-
#endif