Vuo
0.4.4
|
An argument to a node's event and/or init function.
For each VuoCompilerNodeArgumentClass
, there are 0 or more instances of VuoCompilerNodeArgument
.
Public Member Functions | |
virtual void | generateAllocation (Module *module, string nodeInstanceIdentifier) |
Generate the allocation of the argument's runtime representation: a global variable to store the argument's value. | |
virtual LoadInst * | generateLoad (BasicBlock *block) |
Generate code to get the port's value. | |
virtual StoreInst * | generateStore (Value *value, BasicBlock *block) |
Generate code to set the port's value. | |
GlobalVariable * | getVariable (void) |
Returns the global variable to store the argument's value, if generateAllocation has been called. | |
![]() | |
VuoBaseDetail (string description, VuoPort *base) | |
Creates a VuoNode detail class. | |
VuoPort * | getBase (void) const |
Returns the VuoNode detail class instance's base class instance. | |
void | setBase (VuoPort *base) |
Sets the VuoNode detail class instance's base class instance. | |
Protected Member Functions | |
VuoCompilerNodeArgument (VuoPort *basePort) | |
Creates an argument instance based on the specified argumentClass . | |
virtual string | getVariableBaseName (void) |
Returns a name for this argument, which will be a substring of variable names in the generated code. | |
Protected Attributes | |
GlobalVariable * | variable |
The global variable in the generated code in which this argument is stored. | |
|
virtual |
Generate the allocation of the argument's runtime representation: a global variable to store the argument's value.
Assumes nodeInstanceIdentifier
is not empty.
Reimplemented in VuoCompilerEventPort, and VuoCompilerTriggerPort.
GlobalVariable * VuoCompilerNodeArgument::getVariable | ( | void | ) |
Returns the global variable to store the argument's value, if generateAllocation
has been called.
Otherwise returns NULL.