AudioType Class Reference

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

#include <sigtype.hh>

Inherited by SimpleType, TableType, and TupletType.

Collaboration diagram for AudioType:
[legend]

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 Member Functions

void setInterval (const interval &r)

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.


Constructor & Destructor Documentation

AudioType::AudioType ( int  n,
int  v,
int  c,
int  vec = kVect,
int  b = kNum,
interval  i = interval() 
) [inline]

constructs an abstract audio type

Definition at line 94 of file sigtype.hh.

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

not really useful here, but make compiler happier

Definition at line 98 of file sigtype.hh.


Member Function Documentation

int AudioType::boolean (  )  const [inline]

returns when a signal stands for a boolean value

Definition at line 104 of file sigtype.hh.

References fBoolean.

Referenced by infereReadTableType(), infereSigType(), operator==(), operator|(), and SimpleType::print().

Here is the caller graph for this function:

int AudioType::computability (  )  const [inline]

returns when values are available (compilation, initialisation, execution)

Definition at line 102 of file sigtype.hh.

References fComputability.

Referenced by infereReadTableType(), infereSigType(), operator|(), TupletType::print(), TableType::print(), and SimpleType::print().

Here is the caller graph for this function:

interval AudioType::getInterval (  )  const [inline]

returns the interval (min dn max values) of a signal

Definition at line 106 of file sigtype.hh.

References fInterval.

Referenced by infereSigType().

Here is the caller graph for this function:

int AudioType::nature (  )  const [inline]

returns the kind of values (integre or floating point)

Definition at line 100 of file sigtype.hh.

References fNature.

Referenced by checkInt(), infereReadTableType(), infereSigType(), infereWriteTableType(), operator==(), operator|(), and SimpleType::print().

Here is the caller graph for this function:

virtual ostream& AudioType::print ( ostream &  dst  )  const [pure virtual]

print nicely a type

Implemented in SimpleType, TableType, and TupletType.

Referenced by operator<<().

Here is the caller graph for this function:

virtual AudioType* AudioType::promoteBoolean ( int  n  )  [pure virtual]

promote the booleanity of a type

Implemented in SimpleType, TableType, and TupletType.

virtual AudioType* AudioType::promoteComputability ( int  n  )  [pure virtual]

promote the computability of a type

Implemented in SimpleType, TableType, and TupletType.

virtual AudioType* AudioType::promoteNature ( int  n  )  [pure virtual]

promote the nature of a type

Implemented in SimpleType, TableType, and TupletType.

virtual AudioType* AudioType::promoteVariability ( int  n  )  [pure virtual]

promote the variability of a type

Implemented in SimpleType, TableType, and TupletType.

virtual AudioType* AudioType::promoteVectorability ( int  n  )  [pure virtual]

promote the vectorability of a type

Implemented in SimpleType, TableType, and TupletType.

void AudioType::setInterval ( const interval r  )  [inline, protected]

Definition at line 120 of file sigtype.hh.

References fInterval.

00120 { fInterval = r;}

int AudioType::variability (  )  const [inline]

returns how fast values change (constant, by blocks, by samples)

Definition at line 101 of file sigtype.hh.

References fVariability.

Referenced by infereReadTableType(), infereSigType(), operator|(), TupletType::print(), TableType::print(), and SimpleType::print().

Here is the caller graph for this function:

int AudioType::vectorability (  )  const [inline]

returns when a signal can be vectorized

Definition at line 103 of file sigtype.hh.

References fVectorability.

Referenced by infereReadTableType(), infereSigType(), operator==(), operator|(), and SimpleType::print().

Here is the caller graph for this function:


Member Data Documentation

int AudioType::fBoolean [protected]
int AudioType::fComputability [protected]
int AudioType::fNature [protected]
int AudioType::fVariability [protected]
int AudioType::fVectorability [protected]

The documentation for this class was generated from the following file:
Generated on Thu Apr 29 00:00:17 2010 for FAUST compiler by  doxygen 1.6.3