FAUST compiler  0.9.9.6b8
Functions
splitSchema.cpp File Reference
#include "splitSchema.h"
#include <iostream>
#include <assert.h>
Include dependency graph for splitSchema.cpp:

Go to the source code of this file.

Functions

schemamakeSplitSchema (schema *s1, schema *s2)
 Creates a new split schema. More...
 

Function Documentation

schema* makeSplitSchema ( schema s1,
schema s2 
)

Creates a new split schema.

Cables are enlarged to dWire. The horizontal gap between the two subschema is such that the connections are not too slopy.

Definition at line 34 of file splitSchema.cpp.

References dWire, schema::height(), and makeEnlargedSchema().

Referenced by generateInsideSchema().

35 {
36  // make sure a and b are at least dWire large
37  schema * a = makeEnlargedSchema(s1, dWire);
38  schema * b = makeEnlargedSchema(s2, dWire);
39 
40  // horizontal gap to avaoid too slopy connections
41  double hgap = (a->height()+b->height())/4;
42 
43  return new splitSchema(a,b,hgap);
44 }
const double dWire
distance between two wires
Definition: schema.h:33
place and connect two diagrams in split composition
Definition: splitSchema.h:33
An abstract block diagram schema.
Definition: schema.h:97
double height() const
Definition: schema.h:127
schema * makeEnlargedSchema(schema *s, double width)
Returns an enlarged schema, but only if really needed that is if the requiered width is greater that ...

Here is the call graph for this function:

Here is the caller graph for this function: