FAUST compiler  0.9.9.6b8
Public Member Functions
SimpleType Class Reference

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

#include <sigtype.hh>

Inheritance diagram for SimpleType:
Inheritance graph
[legend]
Collaboration diagram for SimpleType:
Collaboration graph
[legend]

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
virtual bool isMaximal () const
 true when type is maximal (and therefore can't change depending of hypothesis)

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


Constructor & Destructor Documentation

SimpleType::SimpleType ( int  n,
int  v,
int  c,
int  vec,
int  b,
const interval i 
) [inline]

constructs a SimpleType from a nature a variability and a computability

Definition at line 241 of file sigtype.hh.


Member Function Documentation

bool SimpleType::isMaximal ( ) const [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.

{
    return  (fNature==kReal)
            && (fVariability==kSamp)
            && (fComputability==kExec);

}
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 65 of file sigtype.cpp.

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

Referenced by operator<<().

{
    return  dst << "NR"[nature()] 
            << "KB?S"[variability()]
            << "CI?E"[computability()]
            << "VS?TS"[vectorability()]
            << "N?B"[boolean()] 
            << " " << fInterval; 
}

Here is the call graph for this function:

Here is the caller graph for this function:

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

promote the booleanity of a type

Implements AudioType.

Definition at line 253 of file sigtype.hh.

References makeSimpleType().

Here is the call graph for this function:

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

promote the computability of a type

Implements AudioType.

Definition at line 251 of file sigtype.hh.

References makeSimpleType().

Here is the call graph for this function:

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

promote the nature of a type

Implements AudioType.

Definition at line 249 of file sigtype.hh.

References makeSimpleType().

Here is the call graph for this function:

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

promote the variability of a type

Implements AudioType.

Definition at line 250 of file sigtype.hh.

References makeSimpleType().

Here is the call graph for this function:

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

promote the vectorability of a type

Implements AudioType.

Definition at line 252 of file sigtype.hh.

References makeSimpleType().

Here is the call graph for this function:


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