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 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. |
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.
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.
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().
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().
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().
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().
virtual ostream& AudioType::print | ( | ostream & | dst | ) | const [pure virtual] |
print nicely a type
Implemented in SimpleType, TableType, and TupletType.
Referenced by operator<<().
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] |
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().
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().
int AudioType::fBoolean [protected] |
when a signal stands for a boolean value
Definition at line 88 of file sigtype.hh.
Referenced by boolean(), TupletType::promoteBoolean(), TableType::promoteBoolean(), SimpleType::promoteBoolean(), TupletType::promoteComputability(), TableType::promoteComputability(), SimpleType::promoteComputability(), TupletType::promoteNature(), TableType::promoteNature(), SimpleType::promoteNature(), TupletType::promoteVariability(), TableType::promoteVariability(), SimpleType::promoteVariability(), TupletType::promoteVectorability(), TableType::promoteVectorability(), and SimpleType::promoteVectorability().
int AudioType::fComputability [protected] |
when are values available
Definition at line 86 of file sigtype.hh.
Referenced by computability(), TupletType::promoteBoolean(), TableType::promoteBoolean(), SimpleType::promoteBoolean(), TupletType::promoteComputability(), TableType::promoteComputability(), SimpleType::promoteComputability(), TupletType::promoteNature(), TableType::promoteNature(), SimpleType::promoteNature(), TupletType::promoteVariability(), TableType::promoteVariability(), SimpleType::promoteVariability(), TupletType::promoteVectorability(), TableType::promoteVectorability(), and SimpleType::promoteVectorability().
interval AudioType::fInterval [protected] |
Minimal and maximal values the signal can take.
Definition at line 90 of file sigtype.hh.
Referenced by getInterval(), TupletType::print(), TableType::print(), SimpleType::print(), TupletType::promoteBoolean(), TableType::promoteBoolean(), SimpleType::promoteBoolean(), TupletType::promoteComputability(), TableType::promoteComputability(), SimpleType::promoteComputability(), TupletType::promoteNature(), TableType::promoteNature(), SimpleType::promoteNature(), TupletType::promoteVariability(), TableType::promoteVariability(), SimpleType::promoteVariability(), TupletType::promoteVectorability(), TableType::promoteVectorability(), SimpleType::promoteVectorability(), and setInterval().
int AudioType::fNature [protected] |
the kind of data represented
Definition at line 84 of file sigtype.hh.
Referenced by nature(), TupletType::promoteBoolean(), TableType::promoteBoolean(), SimpleType::promoteBoolean(), TupletType::promoteComputability(), TableType::promoteComputability(), SimpleType::promoteComputability(), TupletType::promoteNature(), TableType::promoteNature(), SimpleType::promoteNature(), TupletType::promoteVariability(), TableType::promoteVariability(), SimpleType::promoteVariability(), TupletType::promoteVectorability(), TableType::promoteVectorability(), and SimpleType::promoteVectorability().
int AudioType::fVariability [protected] |
how fast values change
Definition at line 85 of file sigtype.hh.
Referenced by TupletType::promoteBoolean(), TableType::promoteBoolean(), SimpleType::promoteBoolean(), TupletType::promoteComputability(), TableType::promoteComputability(), SimpleType::promoteComputability(), TupletType::promoteNature(), TableType::promoteNature(), SimpleType::promoteNature(), TupletType::promoteVariability(), TableType::promoteVariability(), SimpleType::promoteVariability(), TupletType::promoteVectorability(), TableType::promoteVectorability(), SimpleType::promoteVectorability(), and variability().
int AudioType::fVectorability [protected] |
when a signal can be vectorized
Definition at line 87 of file sigtype.hh.
Referenced by TupletType::promoteBoolean(), TableType::promoteBoolean(), SimpleType::promoteBoolean(), TupletType::promoteComputability(), TableType::promoteComputability(), SimpleType::promoteComputability(), TupletType::promoteNature(), TableType::promoteNature(), SimpleType::promoteNature(), TupletType::promoteVariability(), TableType::promoteVariability(), SimpleType::promoteVariability(), TupletType::promoteVectorability(), TableType::promoteVectorability(), SimpleType::promoteVectorability(), and vectorability().