Vuo  0.3
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Public Member Functions | List of all members
VuoCompilerGraphvizParser Class Reference

Description

Parses nodes and edges from a .vuo composition file.

Public Member Functions

 VuoCompilerGraphvizParser (const string &path, VuoCompiler *compiler=NULL)
 Parse the .vuo file at path, using the node classes provided by the compiler.
 
 VuoCompilerGraphvizParser (FILE *file, VuoCompiler *compiler=NULL)
 Parse a .vuo file, using the node classes provided by the compiler.
 
map< string, VuoNode * > getNameToNodeMap (void)
 Returns a map allowing a node in this graph to be looked up from its Graphviz identifier.
 
vector< VuoNode * > getNodes (void)
 Returns a list of all the nodes in this graph in the order they were listed in the .vuo file, excluding any psuedo-nodes of class vuo.in or vuo.out.
 
vector
< VuoCompilerGeneratorEdge * > 
getGeneratorInEdgesForNode (VuoCompilerNode *node)
 Returns a list of edges leading from a generator to the specified node.
 
vector< VuoCompilerPassiveEdge * > getPassiveInEdgesForNode (VuoCompilerNode *node)
 Returns a list of edges leading from non-generators to the specified node.
 
vector< VuoCompilerPassiveEdge * > getPassiveOutEdgesForNode (VuoCompilerNode *node)
 Returns a list of non-generator edges leading out from the specified node.
 
vector
< VuoCompilerGeneratorEdge * > 
getGeneratorEdges (void)
 Returns a list of all generator edges in this graph.
 
vector< string > getUnknownNodeClasses (void)
 Returns a list of node classes used by this graph whose implementations don't exist in the compiler's specified node class paths.
 
set< VuoCable * > getCables (void)
 Returns a complete list of this graph's cables connecting output ports to input ports.
 
vector
< VuoCompilerPublishedPort * > 
getPublishedInputPorts (void)
 Returns a consistently-ordered list of all published input ports in this graph.
 
vector
< VuoCompilerPublishedPort * > 
getPublishedOutputPorts (void)
 Returns a consistently-ordered list of all published output ports in this graph.
 
VuoNodegetPublishedInputNode (void)
 Returns the node of class "vuo.in" in the graph, or null if the graph does not have one.
 

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