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.

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().

{
    // make sure a and b are at least dWire large
    schema * a = makeEnlargedSchema(s1, dWire);
    schema * b = makeEnlargedSchema(s2, dWire);

    // horizontal gap to avaoid too slopy connections
    double  hgap = (a->height()+b->height())/4;

    return new splitSchema(a,b,hgap);
}

Here is the call graph for this function:

Here is the caller graph for this function: