2 #ifndef MATH_MACROTABLE_H
3 #define MATH_MACROTABLE_H
14 class MathMacroTemplate;
17 struct MathMacroTable {
20 static void updateTemplate(MathMacroTemplate *);
22 static void insertTemplate(MathMacroTemplate *);
24 static MathMacroTemplate & provideTemplate(string const &);
26 static bool hasTemplate(string const &);
28 static MathMacro * cloneTemplate(string const &);
30 static void createTemplate(string const &, int, string const &);
33 static void builtinMacros();
35 typedef std::map<string, MathMacroTemplate *> table_type;
37 static table_type macro_table;