The Root class for all audio data types. More...
#include <sigtype.hh>
Inherited by SimpleType, TableType, and TupletType.
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 AudioType * | promoteNature (int n)=0 |
promote the nature of a type | |
virtual AudioType * | promoteVariability (int n)=0 |
promote the variability of a type | |
virtual AudioType * | promoteComputability (int n)=0 |
promote the computability of a type | |
virtual AudioType * | promoteVectorability (int n)=0 |
promote the vectorability of a type | |
virtual AudioType * | promoteBoolean (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. |
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.