|
FAUST compiler
0.9.9.6b8
|
An inverter : a special symbol corresponding to '*(-1)' to create more compact diagrams. More...
#include <inverterSchema.h>


Public Member Functions | |
| virtual void | draw (device &dev) |
| Nothing to draw. | |
Private Member Functions | |
| inverterSchema (const string &color) | |
| Build n cables in parallel. | |
Friends | |
| schema * | makeInverterSchema (const string &color) |
| Build n cables in parallel. | |
An inverter : a special symbol corresponding to '*(-1)' to create more compact diagrams.
Definition at line 11 of file inverterSchema.h.
| inverterSchema::inverterSchema | ( | const string & | color | ) | [private] |
Build n cables in parallel.
Definition at line 44 of file inverterSchema.cpp.
: blockSchema (1, 1, 2.5*dWire, dWire, "-1", color, "") { }
| void inverterSchema::draw | ( | device & | dev | ) | [virtual] |
Nothing to draw.
Actual drawing will take place when the wires are enlargered
Reimplemented from blockSchema.
Definition at line 54 of file inverterSchema.cpp.
References dHorz, blockSchema::fColor, blockSchema::fLink, schema::height(), kLeftRight, schema::orientation(), device::triangle(), schema::width(), schema::x(), and schema::y().
{
dev.triangle(x() + dHorz, y()+0.5, width() - 2*dHorz, height()-1, fColor.c_str(),fLink.c_str(), orientation()==kLeftRight);
}

| schema* makeInverterSchema | ( | const string & | color | ) | [friend] |
Build n cables in parallel.
Definition at line 35 of file inverterSchema.cpp.
{
return new inverterSchema(color);
}
1.8.0