An argument to a node's event and/or init function.
For each VuoCompilerNodeArgumentClass
, there are 0 or more instances of VuoCompilerNodeArgument
.
- See Also
- VuoPort
|
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.
|
|
|
| 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.
|
|
|
GlobalVariable * | variable |
| The global variable in the generated code in which this argument is stored.
|
|
VuoCompilerNodeArgument::VuoCompilerNodeArgument |
( |
VuoPort * |
basePort | ) |
|
|
protected |
Creates an argument instance based on the specified argumentClass
.
void VuoCompilerNodeArgument::generateAllocation |
( |
Module * |
module, |
|
|
string |
nodeInstanceIdentifier |
|
) |
| |
|
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 VuoCompilerTriggerPort, and VuoCompilerEventPort.
LoadInst * VuoCompilerNodeArgument::generateLoad |
( |
BasicBlock * |
block | ) |
|
|
virtual |
StoreInst * VuoCompilerNodeArgument::generateStore |
( |
Value * |
value, |
|
|
BasicBlock * |
block |
|
) |
| |
|
virtual |
GlobalVariable * VuoCompilerNodeArgument::getVariable |
( |
void |
| ) |
|
Returns the global variable to store the argument's value, if generateAllocation
has been called.
Otherwise returns NULL.
string VuoCompilerNodeArgument::getVariableBaseName |
( |
void |
| ) |
|
|
protectedvirtual |
GlobalVariable* VuoCompilerNodeArgument::variable |
|
protected |
The global variable in the generated code in which this argument is stored.
The documentation for this class was generated from the following files: