FAUST compiler  0.9.9.6b8
Public Member Functions | Private Member Functions | Friends
inverterSchema Class Reference

An inverter : a special symbol corresponding to '*(-1)' to create more compact diagrams. More...

#include <inverterSchema.h>

Inheritance diagram for inverterSchema:
Inheritance graph
[legend]
Collaboration diagram for inverterSchema:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual void draw (device &dev)
 Nothing to draw.

Private Member Functions

 inverterSchema (const string &color)
 Build n cables in parallel.

Friends

schemamakeInverterSchema (const string &color)
 Build n cables in parallel.

Detailed Description

An inverter : a special symbol corresponding to '*(-1)' to create more compact diagrams.

Definition at line 11 of file inverterSchema.h.


Constructor & Destructor Documentation

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, "")
{
}

Member Function Documentation

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);
}

Here is the call graph for this function:


Friends And Related Function Documentation

schema* makeInverterSchema ( const string &  color) [friend]

Build n cables in parallel.

Definition at line 35 of file inverterSchema.cpp.

{
    return new inverterSchema(color);
}

The documentation for this class was generated from the following files: