Vuo  1.2.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Functions
VuoMathExpressionList

Description

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_objectVuoMathExpressionList_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.
 

Class Documentation

struct VuoMathExpressionList
Class Members
VuoList_VuoText expressions The original expressions.
VuoMathExpressionParser parser The parsed expressions, or null if parsing failed.
char unused
Todo:
https://b33p.net/kosada/node/4124

Function Documentation

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.

struct json_object * VuoMathExpressionList_getJson ( const VuoMathExpressionList  me)
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().

Example:
{
"expression" : [ "y = x + 4", "2 * x" ],
"inputVariables" : [ "x" ],
"outputVariables" : [ "y", "result" ]
}
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.

Example:
{
"expression" : [ "y = x + 4", "2 * x" ]
}
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.