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.
21 #include "math_atom.h"
32 \brief Low level container for math insets
34 \author Alejandro Aguilar Sierra
36 \author Lars Gullik Bjønnes
37 \version February 2001
43 typedef std::vector<MathAtom> buffer_type;
45 typedef buffer_type::const_iterator const_iterator;
47 typedef buffer_type::iterator iterator;
53 MathArray(MathArray const &, int from, int to);
62 void swap(MathArray &);
65 void insert(int pos, MathInset * inset);
67 void insert(int pos, MathArray const &);
70 void erase(int pos1, int pos2);
80 void push_back(MathInset * inset);
82 void push_back(MathArray const &);
89 void dump(std::ostream &) const;
91 void dump2(std::ostream &) const;
93 void substitute(MathMacro const &);
96 MathAtom * at(int pos);
98 MathAtom const * at(int pos) const;
100 void write(std::ostream &, bool) const;
102 void writeNormal(std::ostream &) const;
104 void validate(LaTeXFeatures &) const;
106 const_iterator begin() const;
108 const_iterator end() const;
119 std::ostream & operator<<(std::ostream & os, MathArray const & ar);