Functions | |
nativeCode ConsEquation * | mdlConsEquation_create (ConsEquation *pThis, bool isCheck) |
mdlConsEquation_create initializes a constraint equation data structure, making it ready for the parsing step. More... | |
nativeCode int | mdlConsEquation_parse (ConsEquation *pThis, WCharCP str) |
mdlConsEquation_parse parses the specified algebraic expression and detects syntax errors. More... | |
nativeCode int | mdlConsEquation_resolve (ConsEquation *pThis, ConsModel *pModel) |
mdlConsEquation_resolve looks in the specified constraint model for the constraint parameter objects to which the equation refers by name. More... | |
nativeCode int | mdlConsEquation_gen (ConsEquation *pThis) |
mdlConsEquation_gen activates an equation constraint. More... | |
nativeCode ConsEquation* mdlConsEquation_create | ( | ConsEquation * | pThis, |
bool | isCheck | ||
) |
mdlConsEquation_create initializes a constraint equation data structure, making it
ready for the parsing step.
[out] | pThis | is the storage to be filled out. |
[in] | isCheck | is this a post-check? |
nativeCode int mdlConsEquation_gen | ( | ConsEquation * | pThis | ) |
mdlConsEquation_gen activates an equation constraint.
An equation cannot be activated if it has not already been successfully parsed and resolved.
[out] | pThis | is the parsed and resolved equation constraint to activate. |
nativeCode int mdlConsEquation_parse | ( | ConsEquation * | pThis, |
WCharCP | str | ||
) |
mdlConsEquation_parse parses the specified algebraic expression and detects
syntax errors.
Syntax errors must be fixed before the equation constraint can be resolved and activated.
[out] | pThis | is the initialized constraint equation data structure. It is updated to hold the results of the parse. In particular, if there is a parsing error, the parse.errStr member will describe the offending token. |
[in] | str | is a NULL-terminated string containing the expression to be parsed. |
nativeCode int mdlConsEquation_resolve | ( | ConsEquation * | pThis, |
ConsModel * | pModel | ||
) |
mdlConsEquation_resolve looks in the specified constraint model for the
constraint parameter objects to which the equation refers by name.
mdlConsEquation_resolve fails if any parameter cannot be found in the model. All references must be resolved before the equation constraint can be activated.
[out] | pThis | is the parsed equation constraint to be resolved. It is updated with the results of the resolve step. In particular, if a constraint parameter cannot be found, its name is placed in parse.errStr. |
[in] | pModel | is the Constraint Model in which Constraint Parameters are to be found. |