Vuo  0.4.1
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
VuoCompilerNodeArgument Class Reference

Description

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

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.
 
- Public Member Functions inherited from VuoBaseDetail< VuoPort >
 VuoBaseDetail (string description, VuoPort *base)
 Creates a VuoNode detail class.
 
VuoPortgetBase (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.
 

Member Function Documentation

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


The documentation for this class was generated from the following files: