Vuo
0.7.0
|
A passive (non-trigger) port, optionally with data.
Public Member Functions | |
void | generateAllocation (Module *module, string nodeInstanceIdentifier) |
Generates code to allocate this port. | |
StoreInst * | generateStore (Value *value, BasicBlock *block) |
Generates code to set the port's value to value . | |
StoreInst * | generateStore (bool pushed, BasicBlock *block) |
Generates code to set the port's value to bool value . | |
string | getIdentifier (void) |
Returns a unique, consistent identifier for this port. | |
virtual VuoCompilerData * | getData (void)=0 |
Returns this port's data, or NULL if none. | |
VuoCompilerType * | getDataType (void) |
Returns the type of this port's data, or NULL if none. | |
![]() | |
bool | hasConnectedCable (bool includePublishedCables) const |
Returns a boolean indicating whether this port has any attached cables. | |
bool | hasConnectedDataCable (bool includePublishedCables) const |
Returns a boolean indicating whether this port has any attached data+event cables. | |
VuoType * | getDataVuoType (void) |
Returns tthis port's data type, or null if this port is event-only. | |
void | setDataVuoType (VuoType *dataType) |
Sets the data type for this port, overriding the type from the port class. | |
![]() | |
virtual LoadInst * | generateLoad (BasicBlock *block) |
Generate code to get 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 | |
VuoCompilerEventPort (VuoPort *basePort) | |
Creates a passive (non-trigger) port from the specified portClass . | |
Constant * | getBoolConstant (bool value) |
Returns constant with value value . | |
string | getVariableBaseName (void) |
Distinguishes the variable for the event from the variable for the data in data-and-event ports. | |
![]() | |
VuoCompilerPort (VuoPort *basePort) | |
Creates a compiler detail from a given basePort . | |
![]() | |
VuoCompilerNodeArgument (VuoPort *basePort) | |
Creates an argument instance based on the specified argumentClass . | |
Protected Attributes | |
VuoCompilerData * | data |
Optional data stored in this port. | |
|
protected |
Creates a passive (non-trigger) port from the specified portClass
.
|
virtual |
Generates code to allocate this port.
Reimplemented from VuoCompilerNodeArgument.
|
virtual |
Generates code to set the port's value to value
.
Reimplemented from VuoCompilerNodeArgument.
StoreInst * VuoCompilerEventPort::generateStore | ( | bool | pushed, |
BasicBlock * | block | ||
) |
Generates code to set the port's value to bool value
.
|
protected |
Returns constant with value value
.
|
pure virtual |
Returns this port's data, or NULL if none.
Implemented in VuoCompilerOutputEventPort, and VuoCompilerInputEventPort.
VuoCompilerType * VuoCompilerEventPort::getDataType | ( | void | ) |
Returns the type of this port's data, or NULL if none.
|
virtual |
Returns a unique, consistent identifier for this port.
Assumes generateAllocation
has been called.
Implements VuoCompilerPort.
|
protectedvirtual |
Distinguishes the variable for the event from the variable for the data in data-and-event ports.
Reimplemented from VuoCompilerNodeArgument.
|
protected |
Optional data stored in this port.