SimpleType Class Reference

The type of a simple numeric audio signal. More...

#include <sigtype.hh>

Inheritance diagram for SimpleType:

AudioType

List of all members.

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
virtual ostream & print (ostream &dst) const
 print a SimpleType
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


Detailed Description

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


Member Function Documentation

ostream & SimpleType::print ( ostream &  dst  )  const [virtual]

print a SimpleType

Print the content of a simple type on a stream.

Implements AudioType.

Definition at line 53 of file sigtype.cpp.

References AudioType::boolean(), AudioType::computability(), AudioType::fInterval, AudioType::nature(), AudioType::variability(), and AudioType::vectorability().

00054 {
00055     return  dst << "NR"[nature()] 
00056             << "KB?S"[variability()]
00057             << "CI?E"[computability()]
00058             << "VS?TS"[vectorability()]
00059             << "N?B"[boolean()] 
00060             << " " << fInterval; 
00061 }


The documentation for this class was generated from the following files:

Generated on Sat Jul 25 12:28:18 2009 for FAUST compiler by  doxygen 1.5.9