2 #ifndef MATH_MACROTABLE_H
3 #define MATH_MACROTABLE_H
7 #include "math_macrotemplate.h"
18 struct MathMacroTable {
21 static void insertTemplate(MathMacroTemplate const &);
23 static MathMacroTemplate & provideTemplate(string const &);
25 static bool hasTemplate(string const &);
27 static MathMacro * cloneTemplate(string const &);
29 static void createTemplate(string const &, int, string const &);
31 static void builtinMacros();
34 typedef std::map<string, MathMacroTemplate> table_type;
36 static table_type macro_table;