FAUST compiler  0.9.9.6b8
Public Member Functions | Private Attributes | List of all members
schema Class Referenceabstract

An abstract block diagram schema. More...

#include <schema.h>

Inheritance diagram for schema:
Inheritance graph
[legend]

Public Member Functions

 schema (unsigned int inputs, unsigned int outputs, double width, double height)
 
virtual ~schema ()
 
double width () const
 
double height () const
 
unsigned int inputs () const
 
unsigned int outputs () const
 
void beginPlace (double x, double y, int orientation)
 
void endPlace ()
 
bool placed () const
 
double x () const
 
double y () const
 
int orientation () const
 
virtual void place (double x, double y, int orientation)=0
 
virtual void draw (device &dev)=0
 
virtual point inputPoint (unsigned int i) const =0
 
virtual point outputPoint (unsigned int i) const =0
 
virtual void collectTraits (collector &c)=0
 

Private Attributes

const unsigned int fInputs
 
const unsigned int fOutputs
 
const double fWidth
 
const double fHeight
 
bool fPlaced
 false until place() is called More...
 
double fX
 
double fY
 
int fOrientation
 

Detailed Description

An abstract block diagram schema.

Definition at line 97 of file schema.h.

Constructor & Destructor Documentation

schema::schema ( unsigned int  inputs,
unsigned int  outputs,
double  width,
double  height 
)
inline

Definition at line 113 of file schema.h.

114  : fInputs(inputs),
115  fOutputs(outputs),
116  fWidth(width),
117  fHeight(height),
118  fPlaced(false),
119  fX(0),
120  fY(0),
121  fOrientation(0)
122  {}
unsigned int outputs() const
Definition: schema.h:129
const unsigned int fOutputs
Definition: schema.h:101
int fOrientation
Definition: schema.h:109
bool fPlaced
false until place() is called
Definition: schema.h:106
unsigned int inputs() const
Definition: schema.h:128
double width() const
Definition: schema.h:126
const unsigned int fInputs
Definition: schema.h:100
const double fHeight
Definition: schema.h:103
double fX
Definition: schema.h:107
const double fWidth
Definition: schema.h:102
double fY
Definition: schema.h:108
double height() const
Definition: schema.h:127
virtual schema::~schema ( )
inlinevirtual

Definition at line 123 of file schema.h.

123 {}

Member Function Documentation

void schema::beginPlace ( double  x,
double  y,
int  orientation 
)
inline

Definition at line 132 of file schema.h.

Referenced by cutSchema::place(), cableSchema::place(), parSchema::place(), recSchema::place(), splitSchema::place(), mergeSchema::place(), enlargedSchema::place(), decorateSchema::place(), seqSchema::place(), topSchema::place(), connectorSchema::place(), and blockSchema::place().

133  { fX = x; fY = y; fOrientation = orientation; }
int fOrientation
Definition: schema.h:109
double y() const
Definition: schema.h:139
double x() const
Definition: schema.h:138
int orientation() const
Definition: schema.h:140
double fX
Definition: schema.h:107
double fY
Definition: schema.h:108

Here is the caller graph for this function:

virtual void schema::collectTraits ( collector c)
pure virtual
virtual void schema::draw ( device dev)
pure virtual
void schema::endPlace ( )
inline

Definition at line 134 of file schema.h.

Referenced by cutSchema::place(), cableSchema::place(), parSchema::place(), recSchema::place(), splitSchema::place(), mergeSchema::place(), enlargedSchema::place(), decorateSchema::place(), seqSchema::place(), topSchema::place(), connectorSchema::place(), and blockSchema::place().

134 { fPlaced = true; }
bool fPlaced
false until place() is called
Definition: schema.h:106

Here is the caller graph for this function:

double schema::height ( ) const
inline
virtual point schema::inputPoint ( unsigned int  i) const
pure virtual
unsigned int schema::inputs ( ) const
inline
int schema::orientation ( ) const
inline
virtual point schema::outputPoint ( unsigned int  i) const
pure virtual
unsigned int schema::outputs ( ) const
inline
virtual void schema::place ( double  x,
double  y,
int  orientation 
)
pure virtual
bool schema::placed ( ) const
inline
double schema::width ( ) const
inline
double schema::x ( ) const
inline
double schema::y ( ) const
inline

Member Data Documentation

const double schema::fHeight
private

Definition at line 103 of file schema.h.

const unsigned int schema::fInputs
private

Definition at line 100 of file schema.h.

int schema::fOrientation
private

Definition at line 109 of file schema.h.

const unsigned int schema::fOutputs
private

Definition at line 101 of file schema.h.

bool schema::fPlaced
private

false until place() is called

Definition at line 106 of file schema.h.

const double schema::fWidth
private

Definition at line 102 of file schema.h.

double schema::fX
private

Definition at line 107 of file schema.h.

double schema::fY
private

Definition at line 108 of file schema.h.


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