#include <map>
#include "LString.h"
-#include "math_macrotemplate.h"
+#include "math_atom.h"
-#ifdef __GNUG__
-#pragma interface
-#endif
-
-
-class MathMacro;
///
-struct MathMacroTable {
+class MathMacroTable {
public:
///
- static void insertTemplate(MathMacroTemplate const &);
- ///
- static MathMacroTemplate & provideTemplate(string const &);
- ///
- static bool hasTemplate(string const &);
+ static void create(MathAtom const &);
///
- static MathMacro * cloneTemplate(string const &);
+ static MathAtom & provide(string const & name);
///
- static void createTemplate(string const &, int, string const &);
+ static bool has(string const & name);
///
- static void builtinMacros();
+ static void dump();
private:
///
- typedef std::map<string, MathMacroTemplate> table_type;
+ typedef std::map<string, MathAtom> table_type;
//
static table_type macro_table;
-public:
- ///
- static void dump();
};
+
#endif