Vuo
1.2.0
|
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. | |
![]() | |
~VuoCompilerPortClass (void) | |
Destructor. | |
virtual string | getDisplayName (void) |
Returns the port class's display name, camel-case expanded, and optionally overridden by the port class details . | |
void | setDetails (struct json_object *details) |
Sets details for this port. | |
json_object * | getDetails (void) |
Returns details for this port, set in setDetails() . | |
![]() | |
virtual | ~VuoCompilerNodeArgumentClass (void) |
to make this class dynamic_cast-able | |
virtual Type * | getType (void) |
Returns the type of this argument. | |
bool | isInEventFunction (void) |
Returns true if this is known to be one of the parameters in its node class's event function. | |
size_t | getIndexInEventFunction (void) |
Returns the index of this port's parameter in its node class's event function. | |
void | setIndexInEventFunction (size_t indexInEventFunction) |
Indicates that this is the parameter at index indexInEventFunction in its node class's event function. | |
bool | isInInitFunction (void) |
Returns true if this is known to be one of the parameters in its node class's init function. | |
size_t | getIndexInInitFunction (void) |
Returns the index of this port's parameter in its node class's init function. | |
void | setIndexInInitFunction (size_t indexInInitFunction) |
Indicates that this is the parameter at index indexInInitFunction in its node class's init function. | |
bool | isInCallbackStartFunction (void) |
Returns true if this is known to be one of the parameters in its node class's callback start function. | |
size_t | getIndexInCallbackStartFunction (void) |
Returns the index of this port's parameter in its node class's callback start function. | |
void | setIndexInCallbackStartFunction (size_t indexInCallbackStartFunction) |
Indicates that this is the parameter at index indexInCallbackStartFunction in its node class's callback start function. | |
bool | isInCallbackUpdateFunction (void) |
Returns true if this is known to be one of the parameters in its node class's callback update function. | |
size_t | getIndexInCallbackUpdateFunction (void) |
Returns the index of this port's parameter in its node class's callback update function. | |
void | setIndexInCallbackUpdateFunction (size_t indexInCallbackUpdateFunction) |
Indicates that this is the parameter at index indexInCallbackUpdateFunction in its node class's callback update function. | |
bool | isInCallbackStopFunction (void) |
Returns true if this is known to be one of the parameters in its node class's callback stop function. | |
size_t | getIndexInCallbackStopFunction (void) |
Returns the index of this port's parameter in its node class's callback stop function. | |
void | setIndexInCallbackStopFunction (size_t indexInCallbackStopFunction) |
Indicates that this is the parameter at index indexInCallbackStopFunction in its node class's callback stop function. | |
![]() | |
VuoBaseDetail (string description, VuoPortClass *base) | |
Creates a VuoPortClass detail class. | |
VuoPortClass * | getBase (void) const |
Returns the VuoPortClass detail class instance's base class instance. | |
void | setBase (VuoPortClass *base) |
Sets the VuoPortClass detail class instance's base class instance. | |
Additional Inherited Members | |
![]() | |
VuoCompilerPortClass (string name, VuoPortClass::PortType portType, Type *type) | |
Creates a port type and creates its corresponding base VuoPortClass . | |
![]() | |
struct json_object * | details |
Metadata specified in the node class implementation, such as the port's display name. | |
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 title. |
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 |
Returns the type of the data transmitted by this trigger, as set in setDataVuoType
.
Implements VuoCompilerPortClass.
FunctionType * VuoCompilerTriggerPortClass::getFunctionType | ( | void | ) |
Returns the FunctionType
pointed to by this port's PointerType
parameter in its node class's event/init functions.
|
virtual |
Creates a new port based on this port type, and creates its corresponding base VuoPort
.
Implements VuoCompilerPortClass.
|
virtual |
Creates a new port based on this port type, using the pre-existing port
as its base.
Implements VuoCompilerPortClass.
|
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.