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

Go to the source code of this file.

Functions

schemamakeMergeSchema (schema *s1, schema *s2)
 Creates a new merge schema.

Function Documentation

schema* makeMergeSchema ( schema s1,
schema s2 
)

Creates a new merge 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 35 of file mergeSchema.cpp.

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

Referenced by generateInsideSchema().

{
    // avoid ugly diagram by ensuring at least dWire width
    schema * a = makeEnlargedSchema(s1, dWire);
    schema * b = makeEnlargedSchema(s2, dWire);
    double  hgap = (a->height()+b->height())/4;
    return new mergeSchema(a,b,hgap);
}

Here is the call graph for this function:

Here is the caller graph for this function: