mergeSchema.cpp File Reference

#include "mergeSchema.h"
#include "schema.h"
#include <iostream>
#include <assert.h>
Include dependency graph for mergeSchema.cpp:
This graph shows which files directly or indirectly include this file:

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

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

Here is the call graph for this function:

Here is the caller graph for this function:

Generated on Tue Aug 10 08:04:14 2010 for FAUST compiler by  doxygen 1.6.3