Vuo  1.2.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | List of all members
VuoCompilerOutputEventPort Class Reference

Description

A passive (non-trigger) output port, optionally with data.

See Also
{VuoCompilerOutputEventPortClass}

Public Member Functions

 VuoCompilerOutputEventPort (VuoPort *basePort)
 Creates a passive (non-trigger) output port based on portClass.
 
VuoCompilerOutputDatagetData (void)
 Returns this port's data, or NULL if none.
 
- Public Member Functions inherited from VuoCompilerEventPort
Value * generateCreatePortContext (Module *module, BasicBlock *block)
 Generates code to create a heap-allocated PortContext.
 
Value * generateLoadEvent (Module *module, BasicBlock *block, Value *nodeContextValue, Value *portContextValue=NULL)
 Generates code to get the current event value for this port.
 
void generateStoreEvent (Module *module, BasicBlock *block, Value *nodeContextValue, Value *eventValue, Value *portContextValue=NULL)
 Generates code to update the event value for this port.
 
void generateStoreEvent (Module *module, BasicBlock *block, Value *nodeContextValue, bool event, Value *portContextValue=NULL)
 Generates code to update the event value for this port.
 
Value * generateLoadData (Module *module, BasicBlock *block, Value *nodeContextValue, Value *portContextValue=NULL)
 Generates code to get the current data value for this port.
 
void generateStoreData (Module *module, BasicBlock *block, Value *nodeContextValue, Value *dataValue)
 Generates code to update the data value for this port.
 
void generateReplaceData (Module *module, BasicBlock *block, Value *nodeContextValue, Value *dataValue, Value *portContextValue=NULL)
 Generates code to update the data value for this port, handling the memory management for replacing the old data value.
 
VuoCompilerTypegetDataType (void)
 Returns the type of this port's data, or NULL if none.
 
- Public Member Functions inherited from VuoCompilerPort
bool hasConnectedCable (void) const
 Returns a boolean indicating whether this port has any attached cables.
 
bool hasConnectedDataCable (void) const
 Returns a boolean indicating whether this port has any attached data+event cables.
 
VuoTypegetDataVuoType (void)
 Returns this 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.
 
void setNodeIdentifier (string nodeIdentifier)
 Sets an identifier that will be part of the string returned by getIdentifier().
 
virtual string getIdentifier (void)
 Returns a unique, consistent identifier for this port.
 
void setIndexInPortContexts (int indexInPortContexts)
 Sets the index of this node within the array of port contexts within the node context.
 
int getIndexInPortContexts (void)
 Returns the index of this node within the array of port contexts within the node context.
 
void setConstantStringCache (VuoCompilerConstantStringCache *constantStrings)
 Sets the cache used to generate constant string values.
 
Value * getDataVariable (Module *module, BasicBlock *block, Value *nodeContextValue)
 Returns the address of the data field within this port's context.
 
Value * generateGetPortContext (Module *module, BasicBlock *block, Value *nodeContextValue)
 Returns this port's context.
 
- Public Member Functions inherited from VuoCompilerNodeArgument
virtual ~VuoCompilerNodeArgument (void)
 Destructor.
 
- 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.
 

Additional Inherited Members

- Protected Member Functions inherited from VuoCompilerEventPort
 VuoCompilerEventPort (VuoPort *basePort)
 Creates a passive (non-trigger) port from the specified portClass.
 
- Protected Attributes inherited from VuoCompilerEventPort
VuoCompilerDatadata
 Optional data stored in this port.
 

Constructor & Destructor Documentation

VuoCompilerOutputEventPort::VuoCompilerOutputEventPort ( VuoPort basePort)

Creates a passive (non-trigger) output port based on portClass.

Member Function Documentation

VuoCompilerOutputData * VuoCompilerOutputEventPort::getData ( void  )
virtual

Returns this port's data, or NULL if none.

Implements VuoCompilerEventPort.


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