#include "recSchema.h"
#include "schema.h"
#include <iostream>
#include <assert.h>
Go to the source code of this file.
Functions | |
schema * | makeRecSchema (schema *s1, schema *s2) |
Creates a new recursive schema (s1 ~ s2). |
Creates a new recursive schema (s1 ~ s2).
The smallest component is enlarged to the width of the other. The left and right horizontal margins are computed according to the number of internal connections.
Definition at line 34 of file recSchema.cpp.
References dWire, makeEnlargedSchema(), max(), and schema::width().
Referenced by generateInsideSchema().
00035 { 00036 schema* a = makeEnlargedSchema(s1, s2->width()); 00037 schema* b = makeEnlargedSchema(s2, s1->width()); 00038 double m = dWire * max(b->inputs(), b->outputs()); 00039 double w = a->width() + 2*m; 00040 00041 return new recSchema(a,b,w); 00042 }