Vuo 2.4.4
|
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. | |
void | VuoMathExpressionList_retain (VuoMathExpressionList value) |
VuoCompilerType::parseOrGenerateRetainOrReleaseFunction can't currently generate this on arm64. | |
void | VuoMathExpressionList_release (VuoMathExpressionList value) |
VuoCompilerType::parseOrGenerateRetainOrReleaseFunction can't currently generate this on arm64. | |
char * | VuoMathExpressionList_getString (const 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. |
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.
Definition at line 120 of file VuoMathExpressionList.c.
struct json_object * VuoMathExpressionList_getJson | ( | const VuoMathExpressionList | me | ) |
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().
Definition at line 84 of file VuoMathExpressionList.c.
char * VuoMathExpressionList_getString | ( | const VuoMathExpressionList | value | ) |
Automatically generated function.
char * VuoMathExpressionList_getSummary | ( | const VuoMathExpressionList | me | ) |
Returns a string representation of the value.
Definition at line 110 of file VuoMathExpressionList.c.
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.
Definition at line 33 of file VuoMathExpressionList.c.
VuoMathExpressionList VuoMathExpressionList_makeFromJson | ( | json_object * | js | ) |
Decodes the JSON object to create a new value.
Definition at line 64 of file VuoMathExpressionList.c.
void VuoMathExpressionList_release | ( | VuoMathExpressionList | value | ) |
VuoCompilerType::parseOrGenerateRetainOrReleaseFunction
can't currently generate this on arm64.
https://b33p.net/kosada/vuo/vuo/-/issues/19142#note_2158967
Definition at line 143 of file VuoMathExpressionList.c.
void VuoMathExpressionList_retain | ( | VuoMathExpressionList | value | ) |
VuoCompilerType::parseOrGenerateRetainOrReleaseFunction
can't currently generate this on arm64.
https://b33p.net/kosada/vuo/vuo/-/issues/19142#note_2158967
Definition at line 133 of file VuoMathExpressionList.c.