3 * Purpose: A general purpose resizable array.
4 * Author: Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
5 * Created: January 1996
7 * Dependencies: None (almost)
9 * Copyright: 1996, Alejandro Aguilar Sierra
12 * You are free to use and modify this code under the terms of
13 * the GNU General Public Licence version 2 or later.
31 \brief Low level container for math insets
33 \author Alejandro Aguilar Sierra
35 \author Lars Gullik Bjønnes
36 \version February 2001
41 typedef std::vector<MathInset *> buffer_type;
43 typedef buffer_type::const_iterator const_iterator;
45 typedef buffer_type::iterator iterator;
51 MathArray(MathArray const &);
53 MathArray(MathArray const &, int from, int to);
55 MathArray & operator=(MathArray const &);
66 void swap(MathArray &);
69 void insert(int pos, MathInset * inset);
71 void insert(int pos, MathArray const &);
74 void erase(int pos1, int pos2);
84 void push_back(MathInset * inset);
86 void push_back(MathArray const &);
90 MathInset * back() const;
93 void dump(std::ostream &) const;
95 void dump2(std::ostream &) const;
97 void substitute(MathMacro const &);
101 MathInset * nextInset(int pos);
103 MathInset const * nextInset(int pos) const;
105 void write(std::ostream &, bool) const;
107 void writeNormal(std::ostream &) const;
109 void validate(LaTeXFeatures &) const;
111 const_iterator begin() const;
113 const_iterator end() const;
120 void deep_copy(iterator from, iterator to);
126 std::ostream & operator<<(std::ostream & os, MathArray const & ar);