Vuo  1.0.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Functions
VuoMathExpression

Description

A mathematical expression (e.g.

"a + b" or "y = x + 1").

Classes

struct  VuoMathExpression
 A mathematical expression. More...
 

Functions

VuoMathExpression VuoMathExpression_makeFromJson (json_object *js)
 Decodes the JSON object to create a new value.
 
json_object * VuoMathExpression_getJson (const VuoMathExpression me)
 Encodes the value as a JSON object.
 
char * VuoMathExpression_getSummary (const VuoMathExpression me)
 Returns a string representation of the value.
 
VuoMathExpression VuoMathExpression_makeFromString (const char *str)
 Automatically generated function.
 
char * VuoMathExpression_getString (const VuoMathExpression value)
 Automatically generated function.
 
void VuoMathExpression_retain (VuoMathExpression value)
 Automatically generated function.
 
void VuoMathExpression_release (VuoMathExpression value)
 Automatically generated function.
 

Class Documentation

struct VuoMathExpression
Class Members
VuoText expression The original expression.
VuoMathExpressionParser parser The parsed expression, or null if parsing failed.

Function Documentation

struct json_object * VuoMathExpression_getJson ( const VuoMathExpression  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",
"inputVariables" : [ "x" ],
"outputVariables" : [ "y" ]
}
char* VuoMathExpression_getString ( const VuoMathExpression  value)

Automatically generated function.

char * VuoMathExpression_getSummary ( const VuoMathExpression  me)

Returns a string representation of the value.

VuoMathExpression VuoMathExpression_makeFromJson ( json_object *  js)

Decodes the JSON object to create a new value.

Example:
{
"expression" : "y = x + 4"
}
VuoMathExpression VuoMathExpression_makeFromString ( const char *  str)

Automatically generated function.

void VuoMathExpression_release ( VuoMathExpression  value)

Automatically generated function.

void VuoMathExpression_retain ( VuoMathExpression  value)

Automatically generated function.