Vuo
1.2.2
|
A list of mathematical expressions (e.g.
["sum=n1+n2", "product=n1*n2", "n1-n2+5"]).
Classes | |
struct | VuoMathExpressionList |
An ordered list of mathematical expressions. More... | |
Functions | |
VuoMathExpressionList | VuoMathExpressionList_make (VuoList_VuoText expressions) |
Creates a VuoMathExpressionList with the given math expressions. | |
VuoMathExpressionList | VuoMathExpressionList_makeFromJson (json_object *js) |
Decodes the JSON object to create a new value. | |
json_object * | VuoMathExpressionList_getJson (const VuoMathExpressionList me) |
Encodes the value as a JSON object. | |
char * | VuoMathExpressionList_getSummary (const VuoMathExpressionList me) |
Returns a string representation of the value. | |
VuoDictionary_VuoText_VuoReal | VuoMathExpressionList_calculate (const VuoMathExpressionList expressionList, const VuoDictionary_VuoText_VuoReal variablesAndValues) |
Returns the output variables and values that result from evaluating the math expressions with the given input variables and values. | |
VuoMathExpressionList | VuoMathExpressionList_makeFromString (const char *str) |
Automatically generated function. | |
char * | VuoMathExpressionList_getString (const VuoMathExpressionList value) |
Automatically generated function. | |
void | VuoMathExpressionList_retain (VuoMathExpressionList value) |
Automatically generated function. | |
void | VuoMathExpressionList_release (VuoMathExpressionList value) |
Automatically generated function. | |
struct VuoMathExpressionList |
Class Members | ||
---|---|---|
VuoList_VuoText | expressions | The original expressions. |
VuoMathExpressionParser | parser | The parsed expressions, or null if parsing failed. |
char | unused |
VuoDictionary_VuoText_VuoReal VuoMathExpressionList_calculate | ( | const VuoMathExpressionList | expressionList, |
const VuoDictionary_VuoText_VuoReal | variablesAndValues | ||
) |
Returns the output variables and values that result from evaluating the math expressions with the given input variables and values.
|
read |
Encodes the value as a JSON object.
Includes the expression's variables in the JSON object, to be used when generating the Calculate node class. However, the variables are ignored by VuoMathExpression_makeFromJson().
char* VuoMathExpressionList_getString | ( | const VuoMathExpressionList | value | ) |
Automatically generated function.
char * VuoMathExpressionList_getSummary | ( | const VuoMathExpressionList | me | ) |
Returns a string representation of the value.
VuoMathExpressionList VuoMathExpressionList_make | ( | VuoList_VuoText | expressions | ) |
Creates a VuoMathExpressionList with the given math expressions.
Takes ownership of expressions: expressions should not later be modified or freed by the caller.
VuoMathExpressionList VuoMathExpressionList_makeFromJson | ( | json_object * | js | ) |
Decodes the JSON object to create a new value.
VuoMathExpressionList VuoMathExpressionList_makeFromString | ( | const char * | str | ) |
Automatically generated function.
void VuoMathExpressionList_release | ( | VuoMathExpressionList | value | ) |
Automatically generated function.
void VuoMathExpressionList_retain | ( | VuoMathExpressionList | value | ) |
Automatically generated function.