|
FAUST compiler
0.9.9.6b8
|
The type of a simple numeric audio signal. More...
#include <sigtype.hh>


Public Member Functions | |
| SimpleType (int n, int v, int c, int vec, int b, const interval &i) | |
| constructs a SimpleType from a nature a variability and a computability More... | |
| virtual ostream & | print (ostream &dst) const |
| print a SimpleType More... | |
| virtual AudioType * | promoteNature (int n) |
| promote the nature of a type More... | |
| virtual AudioType * | promoteVariability (int v) |
| promote the variability of a type More... | |
| virtual AudioType * | promoteComputability (int c) |
| promote the computability of a type More... | |
| virtual AudioType * | promoteVectorability (int vec) |
| promote the vectorability of a type More... | |
| virtual AudioType * | promoteBoolean (int b) |
| promote the booleanity of a type More... | |
| virtual bool | isMaximal () const |
| true when type is maximal (and therefore can't change depending of hypothesis) More... | |
Public Member Functions inherited from AudioType | |
| AudioType (int n, int v, int c, int vec=kVect, int b=kNum, interval i=interval()) | |
| constructs an abstract audio type More... | |
| virtual | ~AudioType () |
| not really useful here, but make compiler happier More... | |
| int | nature () const |
| returns the kind of values (integre or floating point) More... | |
| int | variability () const |
| returns how fast values change (constant, by blocks, by samples) More... | |
| int | computability () const |
| returns when values are available (compilation, initialisation, execution) More... | |
| int | vectorability () const |
| returns when a signal can be vectorized More... | |
| int | boolean () const |
| returns when a signal stands for a boolean value More... | |
| interval | getInterval () const |
| returns the interval (min dn max values) of a signal More... | |
| void | setCode (Tree code) |
| returns the interval (min dn max values) of a signal More... | |
| Tree | getCode () |
| returns the interval (min dn max values) of a signal More... | |
Additional Inherited Members | |
Static Public Attributes inherited from AudioType | |
| static int | gAllocationCount = 0 |
Protected Member Functions inherited from AudioType | |
| void | setInterval (const interval &r) |
Protected Attributes inherited from AudioType | |
| int | fNature |
| the kind of data represented More... | |
| int | fVariability |
| how fast values change More... | |
| int | fComputability |
| when are values available More... | |
| int | fVectorability |
| when a signal can be vectorized More... | |
| int | fBoolean |
| when a signal stands for a boolean value More... | |
| interval | fInterval |
| Minimal and maximal values the signal can take. More... | |
| Tree | fCode |
| Tree representation (for memoization purposes) More... | |
The type of a simple numeric audio signal.
Beside a computability and a variability, SimpleTypes have a "nature" indicating if they represent an integer or floating point audio signals.
Definition at line 237 of file sigtype.hh.
|
inline |
constructs a SimpleType from a nature a variability and a computability
Definition at line 241 of file sigtype.hh.
|
virtual |
true when type is maximal (and therefore can't change depending of hypothesis)
< true when type is maximal (and therefore can't change depending of hypothesis)
Implements AudioType.
Definition at line 30 of file sigtype.cpp.
References AudioType::fComputability, AudioType::fNature, AudioType::fVariability, kExec, kReal, and kSamp.
|
virtual |
print a SimpleType
Print the content of a simple type on a stream.
Implements AudioType.
Definition at line 65 of file sigtype.cpp.
References AudioType::boolean(), AudioType::computability(), AudioType::fInterval, AudioType::nature(), AudioType::variability(), and AudioType::vectorability().
Referenced by operator<<().


|
inlinevirtual |
promote the booleanity of a type
Implements AudioType.
Definition at line 253 of file sigtype.hh.
References makeSimpleType().

|
inlinevirtual |
promote the computability of a type
Implements AudioType.
Definition at line 251 of file sigtype.hh.
References makeSimpleType().

|
inlinevirtual |
promote the nature of a type
Implements AudioType.
Definition at line 249 of file sigtype.hh.
References makeSimpleType().

|
inlinevirtual |
promote the variability of a type
Implements AudioType.
Definition at line 250 of file sigtype.hh.
References makeSimpleType().

|
inlinevirtual |
promote the vectorability of a type
Implements AudioType.
Definition at line 252 of file sigtype.hh.
References makeSimpleType().

1.8.7