The type of a simple numeric audio signal. More...
#include <sigtype.hh>
Inherits AudioType.
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 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 |
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.
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 225 of file sigtype.hh.
Referenced by promoteBoolean(), promoteComputability(), promoteNature(), promoteVariability(), and promoteVectorability().
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().
Referenced by operator<<().
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 }
virtual AudioType* SimpleType::promoteBoolean | ( | int | b | ) | [inline, virtual] |
promote the booleanity of a type
Implements AudioType.
Definition at line 235 of file sigtype.hh.
References AudioType::fBoolean, AudioType::fComputability, AudioType::fInterval, AudioType::fNature, AudioType::fVariability, AudioType::fVectorability, and SimpleType().
virtual AudioType* SimpleType::promoteComputability | ( | int | c | ) | [inline, virtual] |
promote the computability of a type
Implements AudioType.
Definition at line 233 of file sigtype.hh.
References AudioType::fBoolean, AudioType::fComputability, AudioType::fInterval, AudioType::fNature, AudioType::fVariability, AudioType::fVectorability, and SimpleType().
virtual AudioType* SimpleType::promoteNature | ( | int | n | ) | [inline, virtual] |
promote the nature of a type
Implements AudioType.
Definition at line 231 of file sigtype.hh.
References AudioType::fBoolean, AudioType::fComputability, AudioType::fInterval, AudioType::fNature, AudioType::fVariability, AudioType::fVectorability, and SimpleType().
virtual AudioType* SimpleType::promoteVariability | ( | int | v | ) | [inline, virtual] |
promote the variability of a type
Implements AudioType.
Definition at line 232 of file sigtype.hh.
References AudioType::fBoolean, AudioType::fComputability, AudioType::fInterval, AudioType::fNature, AudioType::fVariability, AudioType::fVectorability, and SimpleType().
virtual AudioType* SimpleType::promoteVectorability | ( | int | vec | ) | [inline, virtual] |
promote the vectorability of a type
Implements AudioType.
Definition at line 234 of file sigtype.hh.
References AudioType::fBoolean, AudioType::fComputability, AudioType::fInterval, AudioType::fNature, AudioType::fVariability, AudioType::fVectorability, and SimpleType().