TMtxExpression::Test Method

Overload List

#SignatureDescription
1void Test(const DewString &anExpr, double ResultValue, bool AllowNanInf = false);Specifies a single expression, which must match ResultValue, underwise an exception is raised.
2void Test(const DewString &anExpr, TCplx ResultValue, bool AllowNanInf = false);Specifies a single expression, which must match ResultValue, underwise an exception is raised.
3void Test(const DewString &anExpr, bool ResultValue);

Overload 1: void Test(const DewString &anExpr, double ResultValue, bool AllowNanInf = false);

Specifies a single expression, which must match ResultValue, underwise an exception is raised.

#NameTypeDescription
1anExprconst DewString &
2ResultValuedouble
3AllowNanInf = falsebool
Examples
#include "MtxParseExpr.h"

using namespace Dew;
using namespace Dew::Math;

void Example()
{
    TMtxExpression* aParser = new TMtxExpression();
    aParser->Test("1+2", 3.0); //no exception will be raised, if result is a match
    delete aParser;
}
Declared in Dew::Math::TMtxExpression · Dew.Math/MtxParseExpr.h · Cross-compiler

Overload 2: void Test(const DewString &anExpr, TCplx ResultValue, bool AllowNanInf = false);

Specifies a single expression, which must match ResultValue, underwise an exception is raised.

#NameTypeDescription
1anExprconst DewString &
2ResultValueTCplx
3AllowNanInf = falsebool
Declared in Dew::Math::TMtxExpression · Dew.Math/MtxParseExpr.h · Cross-compiler

Overload 3: void Test(const DewString &anExpr, bool ResultValue);

#NameTypeDescription
1anExprconst DewString &
2ResultValuebool
Declared in Dew::Math::TMtxExpression · Dew.Math/MtxParseExpr.h · Cross-compiler