FAUST compiler  0.9.9.6b8
Public Member Functions | Public Attributes | List of all members
trait Struct Reference

#include <schema.h>

Collaboration diagram for trait:
Collaboration graph
[legend]

Public Member Functions

 trait (const point &p1, const point &p2)
 
void draw (device &dev) const
 
bool operator< (const trait &t) const
 

Public Attributes

point start
 
point end
 
bool hasRealInput
 
bool hasRealOutput
 

Detailed Description

Definition at line 56 of file schema.h.

Constructor & Destructor Documentation

trait::trait ( const point p1,
const point p2 
)
inline

Definition at line 63 of file schema.h.

63 : start(p1), end(p2) {}
point end
Definition: schema.h:59
point start
Definition: schema.h:58

Member Function Documentation

void trait::draw ( device dev) const
inline

Definition at line 64 of file schema.h.

References device::trait().

64 { dev.trait(start.x, start.y, end.x, end.y); }
double y
Definition: schema.h:43
double x
Definition: schema.h:42
point end
Definition: schema.h:59
point start
Definition: schema.h:58
virtual void trait(double x1, double y1, double x2, double y2)=0

Here is the call graph for this function:

bool trait::operator< ( const trait t) const
inline

Definition at line 66 of file schema.h.

References end, and start.

66  {
67  if (start < t.start) return true;
68  else if (t.start < start) return false;
69  else if (end < t.end) return true;
70  else return false;
71  }
point end
Definition: schema.h:59
point start
Definition: schema.h:58

Member Data Documentation

point trait::end

Definition at line 59 of file schema.h.

Referenced by operator<().

bool trait::hasRealInput

Definition at line 60 of file schema.h.

bool trait::hasRealOutput

Definition at line 61 of file schema.h.

point trait::start

Definition at line 58 of file schema.h.

Referenced by operator<().


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