AudioType Class Reference

The Root class for all audio data types. More...

#include <sigtype.hh>

Inheritance diagram for AudioType:

SimpleType TableType TupletType

List of all members.

Public Member Functions

 AudioType (int n, int v, int c, int vec=kVect, int b=kNum, interval i=interval())
 constructs an abstract audio type
virtual ~AudioType ()
 not really useful here, but make compiler happier
int nature () const
 returns the kind of values (integre or floating point)
int variability () const
 returns how fast values change (constant, by blocks, by samples)
int computability () const
 returns when values are available (compilation, initialisation, execution)
int vectorability () const
 returns when a signal can be vectorized
int boolean () const
 returns when a signal stands for a boolean value
interval getInterval () const
 returns the interval (min dn max values) of a signal
virtual AudioTypepromoteNature (int n)=0
 promote the nature of a type
virtual AudioTypepromoteVariability (int n)=0
 promote the variability of a type
virtual AudioTypepromoteComputability (int n)=0
 promote the computability of a type
virtual AudioTypepromoteVectorability (int n)=0
 promote the vectorability of a type
virtual AudioTypepromoteBoolean (int n)=0
 promote the booleanity of a type
virtual ostream & print (ostream &dst) const =0
 print nicely a type

Protected Attributes

int fNature
 the kind of data represented
int fVariability
 how fast values change
int fComputability
 when are values available
int fVectorability
 when a signal can be vectorized
int fBoolean
 when a signal stands for a boolean value
interval fInterval
 Minimal and maximal values the signal can take.


Detailed Description

The Root class for all audio data types.

All audio types have a "variability" (how fast the values change) and a "computability" (when the values are available). Simple types have also a "nature" (integer or floating point).

Definition at line 81 of file sigtype.hh.


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

Generated on Sun May 17 17:25:00 2009 for FAUST compiler by  doxygen 1.5.8