Vuo
0.4.4
|
This class represents a published port in a composition.
Published ports are visible to clients of the composition, for example to a VuoRunner
running the composition or to another composition in which this composition is a subcomposition.
Public Member Functions | |
VuoPublishedPort (string name, VuoType *type, bool isOutput, set< VuoPort * > connectedPorts=set< VuoPort * >()) | |
Creates a published port that is not yet connected to any port in a running composition. | |
string | getName (void) |
Returns the published port's name. | |
VuoType * | getType (void) |
Returns the published port's type, or null if the port is event-only. | |
bool | getInput (void) const |
Returns a boolean indicating whether this published port is an input port. | |
bool | getOutput (void) const |
Returns a boolean indicating whether this published port is an output port. | |
set< VuoPort * > | getConnectedPorts (void) |
Returns the set of pointers to VuoCompilerPort objects for which this published port is an alias. | |
bool | hasConnectedPort (VuoPort *port) |
Returns a boolean indicating whether the published port is an alias for the given internal port . | |
void | addConnectedPort (VuoPort *port) |
Adds the specified port to the list of internal ports for which this published port is an alias. | |
void | removeConnectedPort (VuoPort *port) |
Removes the specified port from the list of internal ports for which this published port is an alias. | |
void | setName (string name) |
Sets the published port's name. | |
![]() | |
VuoBase (string id) | |
Creates a VuoPublishedPort base class. | |
void | setCompiler (VuoCompilerPublishedPort *compiler) |
Sets the VuoPublishedPort base class instance's VuoCompilerPublishedPort detail class instance. | |
VuoCompilerPublishedPort * | getCompiler (void) const |
Returns the VuoPublishedPort base class instance's VuoCompilerPublishedPort detail class instance. | |
bool | hasCompiler (void) const |
Returns true if this base class instance has a compiler detail. | |
void | setRenderer (VuoRendererPublishedPort *renderer) |
Sets the VuoPublishedPort base class instance's VuoRendererPublishedPort detail class instance. | |
VuoRendererPublishedPort * | getRenderer (void) const |
Returns the VuoPublishedPort base class instance's VuoRendererPublishedPort detail class instance. | |
bool | hasRenderer (void) const |
Returns true if this base class instance has a renderer detail. | |
VuoPublishedPort::VuoPublishedPort | ( | string | name, |
VuoType * | type, | ||
bool | isOutput, | ||
set< VuoPort * > | connectedPorts = set<VuoPort *>() |
||
) |
Creates a published port that is not yet connected to any port in a running composition.
name | The published port's name. |
type | The published port's data type, or null if the port is event-only. |
isOutput | A boolean indicating whether the published port is an output port, as opposed to an input port. |
connectedPorts | The set of ports within the composition for which this published port is an alias. |