TMtxExpression::ClearAll Method

void ClearAll();

Clears all expressions and all defined variables.

Examples
#include "MtxParseExpr.h"

using namespace Dew;
using namespace Dew::Math;

void Example()
{
    TMtxExpression* myParser = new TMtxExpression();
    // 1. Example
    myParser->DefineDouble("omega");
    myParser->DefineDoubleConstant("hbar", 1.054571817E-34);
    myParser->AddExpr("hbar*omega");

    // 2. Clear everything
    myParser->ClearAll();

    // 3. What happened ?
    int eCount = myParser->ExprCount; // returns 0
    // Also, all defined the variable, constant varying function, operator,
    // etc.. lists are cleared.
    delete myParser;
}
See Also: TMtxExpression::ClearExpressions, TMtxExpression::ClearVariables
Declared in Dew::Math::TMtxExpression · Dew.Math/MtxParseExpr.h · Cross-compiler