#endif
#include <vector>
-
#include "math_parinset.h"
-#include "debug.h"
class MathMacroTemplate;
-/// This class contains the data for a macro
+/** This class contains the data for a macro
+ \author Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
+ \version November 1996
+ */
class MathMacro : public MathParInset
{
public:
///
MathedRowSt * getRowSt() const;
///
- void SetData(MathedArray *);
+ void setData(MathedArray *);
///
MathedTextCodes getTCode() const;
///
bool Permit(short) const;
-
private:
///
- MathMacroTemplate * tmplate;
+ MathMacroTemplate * tmplate_;
///
struct MacroArgumentBase {
/// Position of the macro
- int x, y;
+ int x;
+ ///
+ int y;
///
MathedRowSt * row;
///
MathedArray * array;
///
- MacroArgumentBase() { x = y = 0; array = 0; row = 0; }
+ MacroArgumentBase()
+ : x(0), y(0), row(0), array(0)
+ {}
};
std::vector<MacroArgumentBase> args_;
///
- int idx;
+ int idx_;
///
- int nargs;
+ int nargs_;
///
- MathedTextCodes tcode;
- ///
- friend class MathMacroTemplate;
+ MathedTextCodes tcode_;
};
-
-///
-//typedef MathMacro * MathMacroP;
-///
-//typedef MathMacroTemplate * MathMacroTemplateP;
-
#endif