Vuo
0.4.8
|
A trigger output port type.
Public Member Functions | |
VuoCompilerTriggerPortClass (string name, PointerType *type) | |
Creates a trigger output port. | |
VuoCompilerPort * | newPort (void) |
Creates a new port based on this port type, and creates its corresponding base VuoPort . | |
VuoCompilerPort * | newPort (VuoPort *port) |
Creates a new port based on this port type, using the pre-existing port as its base. | |
FunctionType * | getFunctionType (void) |
Returns the FunctionType pointed to by this port's PointerType parameter in its node class's event/init functions. | |
VuoType * | getDataVuoType (void) |
Returns the type of the data transmitted by this trigger, as set in setDataVuoType . | |
void | setDataVuoType (VuoType *type) |
Sets the type of the data transmitted by this trigger. | |
Additional Inherited Members | |
![]() | |
VuoCompilerPortClass (string name, VuoPortClass::PortType portType, Type *type) | |
Creates a port type and creates its corresponding base VuoPortClass . | |
![]() | |
Type * | type |
The parameter's type. | |
bool | inEventFunction |
Does this parameter appear in the node's event function? | |
size_t | indexInEventFunction |
Where this parameter appears in the node's event function's parameter list. | |
bool | inInitFunction |
Does this parameter appear in the node's init function? | |
size_t | indexInInitFunction |
Where this parameter appears in the node's init function's parameter list. | |
bool | inCallbackStartFunction |
Does this parameter appear in the node's callback start function? | |
size_t | indexInCallbackStartFunction |
Where this parameter appears in the node's callback start function's parameter list. | |
bool | inCallbackUpdateFunction |
Does this parameter appear in the node's callback update function? | |
size_t | indexInCallbackUpdateFunction |
Where this parameter appears in the node's callback update function's parameter list. | |
VuoCompilerTriggerPortClass::VuoCompilerTriggerPortClass | ( | string | name, |
PointerType * | type | ||
) |
Creates a trigger output port.
Upon creation, isInEventFunction
and isInCallbackStartFunction
both return false.
name | The port's identifier and display name. |
type | A PointerType pointing to a FunctionType which has 0 or 1 parameter. The parameter indicates the type of data, if any, transmitted by the port alongside the fired event. |
|
virtual |
Sets the type of the data transmitted by this trigger.
Its VuoCompilerType
may be null (but needs to be non-null by the time the composition is compiled).
If the VuoCompilerType
is not null, then its LLVM type should equal the first parameter of this port's function type.
Implements VuoCompilerPortClass.