FAUST compiler  0.9.9.6b8
Public Member Functions | Private Attributes
schema Class Reference

An abstract block diagram schema. More...

#include <schema.h>

Inheritance diagram for schema:
Inheritance graph
[legend]

List of all members.

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 void collectTraits (collector &c)=0
virtual point inputPoint (unsigned int i) const =0
virtual point outputPoint (unsigned int i) const =0

Private Attributes

const unsigned int fInputs
const unsigned int fOutputs
const double fWidth
const double fHeight
bool fPlaced
 false until place() is called
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.

virtual schema::~schema ( ) [inline, virtual]

Definition at line 123 of file schema.h.

{}

Member Function Documentation

void schema::beginPlace ( double  x,
double  y,
int  orientation 
) [inline]
virtual void schema::collectTraits ( collector c) [pure virtual]
virtual void schema::draw ( device dev) [pure virtual]
void schema::endPlace ( ) [inline]
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: