|
FAUST compiler
0.9.9.6b8
|
The type of a table of audio data. More...
#include <sigtype.hh>


Public Member Functions | |
| TableType (const Type &t) | |
| construct a TableType with a content of a type t | |
| TableType (const Type &t, int n, int v, int c, int vec, int b, const interval &i) | |
| construct a TableType with a content of a type t, promoting nature, variability, computability, vectorability and booleanity | |
| TableType (const Type &t, int n, int v, int c, int vec) | |
| construct a TableType with a content of a type t, promoting nature, variability, computability and vectorability | |
| Type | content () const |
| return the type of data store in the table | |
| virtual ostream & | print (ostream &dst) const |
| print a TableType | |
| virtual AudioType * | promoteNature (int n) |
| promote the nature of a type | |
| virtual AudioType * | promoteVariability (int v) |
| promote the variability of a type | |
| virtual AudioType * | promoteComputability (int c) |
| promote the computability of a type | |
| virtual AudioType * | promoteVectorability (int vec) |
| promote the vectorability of a type | |
| virtual AudioType * | promoteBoolean (int b) |
| promote the booleanity of a type | |
| virtual bool | isMaximal () const |
| true when type is maximal (and therefore can't change depending of hypothesis) | |
Protected Attributes | |
| const Type | fContent |
| type of that data stored in the table | |
The type of a table of audio data.
Beside a computability and a variability, TableTypes have a "content" indicating the type of the data stored in the table.
Definition at line 288 of file sigtype.hh.
| TableType::TableType | ( | const Type & | t | ) | [inline] |
construct a TableType with a content of a type t
Definition at line 294 of file sigtype.hh.
| TableType::TableType | ( | const Type & | t, |
| int | n, | ||
| int | v, | ||
| int | c, | ||
| int | vec, | ||
| int | b, | ||
| const interval & | i | ||
| ) | [inline] |
construct a TableType with a content of a type t, promoting nature, variability, computability, vectorability and booleanity
Definition at line 311 of file sigtype.hh.
| TableType::TableType | ( | const Type & | t, |
| int | n, | ||
| int | v, | ||
| int | c, | ||
| int | vec | ||
| ) | [inline] |
construct a TableType with a content of a type t, promoting nature, variability, computability and vectorability
Definition at line 315 of file sigtype.hh.
| Type TableType::content | ( | ) | const [inline] |
return the type of data store in the table
Definition at line 320 of file sigtype.hh.
Referenced by codeTableType(), infereReadTableType(), infereWriteTableType(), operator==(), and operator|().

| bool TableType::isMaximal | ( | ) | const [virtual] |
true when type is maximal (and therefore can't change depending of hypothesis)
Implements AudioType.
Definition at line 93 of file sigtype.cpp.
References AudioType::fComputability, AudioType::fNature, AudioType::fVariability, kExec, kReal, and kSamp.
{
return (fNature==kReal)
&& (fVariability==kSamp)
&& (fComputability==kExec);
}
| ostream & TableType::print | ( | ostream & | dst | ) | const [virtual] |
print a TableType
Print the content of a table type on a stream.
Implements AudioType.
Definition at line 79 of file sigtype.cpp.
References AudioType::computability(), fContent, AudioType::fInterval, and AudioType::variability().
Referenced by operator<<().
{
dst << "KB?S"[variability()]
<< "CI?E"[computability()]
<< " " << fInterval
<< ":Table(";
fContent->print(dst);
return dst << ')';
}


| virtual AudioType* TableType::promoteBoolean | ( | int | b | ) | [inline, virtual] |
promote the booleanity of a type
Implements AudioType.
Definition at line 327 of file sigtype.hh.
References makeTableType().

| virtual AudioType* TableType::promoteComputability | ( | int | c | ) | [inline, virtual] |
promote the computability of a type
Implements AudioType.
Definition at line 325 of file sigtype.hh.
References makeTableType().

| virtual AudioType* TableType::promoteNature | ( | int | n | ) | [inline, virtual] |
promote the nature of a type
Implements AudioType.
Definition at line 323 of file sigtype.hh.
References makeTableType().

| virtual AudioType* TableType::promoteVariability | ( | int | v | ) | [inline, virtual] |
promote the variability of a type
Implements AudioType.
Definition at line 324 of file sigtype.hh.
References makeTableType().

| virtual AudioType* TableType::promoteVectorability | ( | int | vec | ) | [inline, virtual] |
promote the vectorability of a type
Implements AudioType.
Definition at line 326 of file sigtype.hh.
References makeTableType().

const Type TableType::fContent [protected] |
type of that data stored in the table
Definition at line 291 of file sigtype.hh.
Referenced by print().
1.8.0