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"
24 class MathScriptInset;
35 \brief Low level container for math insets
37 \author Alejandro Aguilar Sierra
39 \author Lars Gullik Bjønnes
40 \version February 2001
46 typedef std::vector<MathAtom> buffer_type;
48 typedef buffer_type::const_iterator const_iterator;
50 typedef buffer_type::iterator iterator;
52 typedef buffer_type::size_type size_type;
58 MathArray(MathArray const &, size_type from, size_type to);
61 size_type size() const;
67 void swap(MathArray &);
70 void insert(size_type pos, MathAtom const &);
72 void insert(size_type pos, MathArray const &);
75 void erase(size_type pos1, size_type pos2);
77 void erase(size_type pos);
82 void push_back(MathAtom const &);
84 void push_back(MathArray const &);
95 void substitute(MathMacro const &);
98 MathAtom & at(size_type pos);
100 MathAtom const & at(size_type pos) const;
102 void validate(LaTeXFeatures &) const;
104 const_iterator begin() const;
106 const_iterator end() const;