Vuo  2.3.2
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. More...
 
json_objectVuoMathExpression_getJson (const VuoMathExpression me)
 Encodes the value as a JSON object. More...
 
char * VuoMathExpression_getSummary (const VuoMathExpression me)
 Returns a string representation of the value. More...
 
VuoMathExpression VuoMathExpression_makeFromString (const char *str)
 Automatically generated function. More...
 
char * VuoMathExpression_getString (const VuoMathExpression value)
 Automatically generated function. More...
 
void VuoMathExpression_retain (VuoMathExpression value)
 Automatically generated function. More...
 
void VuoMathExpression_release (VuoMathExpression value)
 Automatically generated function. More...
 

Class Documentation

◆ VuoMathExpression

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

Function Documentation

◆ VuoMathExpression_getJson()

struct json_object * VuoMathExpression_getJson ( const VuoMathExpression  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().

Example:
{
"expression" : "y = x + 4",
"inputVariables" : [ "x" ],
"outputVariables" : [ "y" ]
}

Definition at line 77 of file VuoMathExpression.c.

◆ VuoMathExpression_getString()

char* VuoMathExpression_getString ( const VuoMathExpression  value)

Automatically generated function.

◆ VuoMathExpression_getSummary()

char * VuoMathExpression_getSummary ( const VuoMathExpression  me)

Returns a string representation of the value.

Definition at line 101 of file VuoMathExpression.c.

◆ VuoMathExpression_makeFromJson()

VuoMathExpression VuoMathExpression_makeFromJson ( json_object js)

Decodes the JSON object to create a new value.

Example:
{
"expression" : "y = x + 4"
}

Definition at line 40 of file VuoMathExpression.c.

◆ VuoMathExpression_makeFromString()

VuoMathExpression VuoMathExpression_makeFromString ( const char *  str)

Automatically generated function.

◆ VuoMathExpression_release()

void VuoMathExpression_release ( VuoMathExpression  value)

Automatically generated function.

◆ VuoMathExpression_retain()

void VuoMathExpression_retain ( VuoMathExpression  value)

Automatically generated function.