#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 v, int c) | |
construct a TableType with a content of a type t, promoting variability and computability | |
TableType (const Type &t, int n, int v, int c) | |
construct a TableType with a content of a type t, promoting nature, variability and computability | |
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 | |
TableType (const Type &t, int n, int v, int c, int vec, int b) | |
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, int b, const interval &i) | |
construct a TableType with a content of a type t, promoting nature, variability, computability, vectorability and booleanity | |
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 | |
Protected Attributes | |
const Type | fContent |
type of that data stored in the table |
Beside a computability and a variability, TableTypes have a "content" indicating the type of the data stored in the table.
Definition at line 266 of file sigtype.hh.
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 67 of file sigtype.cpp.
References AudioType::computability(), fContent, AudioType::fInterval, and AudioType::variability().
00068 { 00069 dst << "KB?S"[variability()] 00070 << "CI?E"[computability()] 00071 << " " << fInterval 00072 << ":Table("; 00073 fContent->print(dst); 00074 return dst << ')'; 00075 }