TableType Class Reference

The type of a table of audio data. More...

#include <sigtype.hh>

Inherits AudioType.

Collaboration diagram for TableType:
[legend]

List of all members.

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 AudioTypepromoteNature (int n)
 promote the nature of a type
virtual AudioTypepromoteVariability (int v)
 promote the variability of a type
virtual AudioTypepromoteComputability (int c)
 promote the computability of a type
virtual AudioTypepromoteVectorability (int vec)
 promote the vectorability of a type
virtual AudioTypepromoteBoolean (int b)
 promote the booleanity of a type

Protected Attributes

const Type fContent
 type of that data stored in the table

Detailed Description

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 266 of file sigtype.hh.


Constructor & Destructor Documentation

TableType::TableType ( const Type t  )  [inline]

construct a TableType with a content of a type t

Definition at line 272 of file sigtype.hh.

Referenced by promoteBoolean(), promoteComputability(), promoteNature(), promoteVariability(), and promoteVectorability().

Here is the caller graph for this function:

TableType::TableType ( const Type t,
int  v,
int  c 
) [inline]

construct a TableType with a content of a type t, promoting variability and computability

Definition at line 276 of file sigtype.hh.

TableType::TableType ( const Type t,
int  n,
int  v,
int  c 
) [inline]

construct a TableType with a content of a type t, promoting nature, variability and computability

Definition at line 280 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 284 of file sigtype.hh.

TableType::TableType ( const Type t,
int  n,
int  v,
int  c,
int  vec,
int  b 
) [inline]

construct a TableType with a content of a type t, promoting nature, variability, computability, vectorability and booleanity

Definition at line 288 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 292 of file sigtype.hh.


Member Function Documentation

Type TableType::content (  )  const [inline]

return the type of data store in the table

Definition at line 298 of file sigtype.hh.

References fContent.

Referenced by infereReadTableType(), infereWriteTableType(), operator==(), and operator|().

Here is the caller graph for this function:

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().

Referenced by operator<<().

00068 {
00069     dst << "KB?S"[variability()]
00070         << "CI?E"[computability()]
00071         << " " << fInterval 
00072         << ":Table(";
00073     fContent->print(dst);
00074     return dst << ')'; 
00075 }

Here is the call graph for this function:

Here is the caller graph for this function:

virtual AudioType* TableType::promoteBoolean ( int  b  )  [inline, virtual]

promote the booleanity of a type

Implements AudioType.

Definition at line 305 of file sigtype.hh.

References AudioType::fBoolean, AudioType::fComputability, fContent, AudioType::fInterval, AudioType::fNature, AudioType::fVariability, AudioType::fVectorability, and TableType().

Here is the call graph for this function:

virtual AudioType* TableType::promoteComputability ( int  c  )  [inline, virtual]

promote the computability of a type

Implements AudioType.

Definition at line 303 of file sigtype.hh.

References AudioType::fBoolean, AudioType::fComputability, fContent, AudioType::fInterval, AudioType::fNature, AudioType::fVariability, AudioType::fVectorability, and TableType().

Here is the call graph for this function:

virtual AudioType* TableType::promoteNature ( int  n  )  [inline, virtual]

promote the nature of a type

Implements AudioType.

Definition at line 301 of file sigtype.hh.

References AudioType::fBoolean, AudioType::fComputability, fContent, AudioType::fInterval, AudioType::fNature, AudioType::fVariability, AudioType::fVectorability, and TableType().

Here is the call graph for this function:

virtual AudioType* TableType::promoteVariability ( int  v  )  [inline, virtual]

promote the variability of a type

Implements AudioType.

Definition at line 302 of file sigtype.hh.

References AudioType::fBoolean, AudioType::fComputability, fContent, AudioType::fInterval, AudioType::fNature, AudioType::fVariability, AudioType::fVectorability, and TableType().

Here is the call graph for this function:

virtual AudioType* TableType::promoteVectorability ( int  vec  )  [inline, virtual]

promote the vectorability of a type

Implements AudioType.

Definition at line 304 of file sigtype.hh.

References AudioType::fBoolean, AudioType::fComputability, fContent, AudioType::fInterval, AudioType::fNature, AudioType::fVariability, AudioType::fVectorability, and TableType().

Here is the call graph for this function:


Member Data Documentation

const Type TableType::fContent [protected]

type of that data stored in the table

Definition at line 269 of file sigtype.hh.

Referenced by content(), print(), promoteBoolean(), promoteComputability(), promoteNature(), promoteVariability(), and promoteVectorability().


The documentation for this class was generated from the following files:
Generated on Thu Apr 29 00:00:24 2010 for FAUST compiler by  doxygen 1.6.3