#include <InPort.hxx>
Public Member Functions | |
InPort (const std::string &name="unnamed in port", Processing *proc=0) | |
virtual | ~InPort () |
Token & | GetData (int offset=0) |
void | SetSize (int newSize) |
int | GetSize () |
int | GetHop () |
void | SetHop (int hop) |
void | Consume () |
bool | CanConsume () |
void | AttachRegionToOutPort (OutPortBase *out, ProperWritingRegion &writer) |
This method is intended to be used only for the OutPort. | |
void | UnAttachRegion () |
This method is intended to be used only for the OutPort. | |
virtual const std::type_info & | GetTypeId () const |
Protected Attributes | |
ProperReadingRegion | mRegion |
Definition at line 64 of file InPort.hxx.
CLAM::InPort< Token >::InPort | ( | const std::string & | name = "unnamed in port" , |
|
Processing * | proc = 0 | |||
) | [inline] |
Definition at line 107 of file InPort.hxx.
CLAM::InPort< Token >::~InPort | ( | ) | [inline, virtual] |
Definition at line 113 of file InPort.hxx.
References CLAM::InPortBase::Disconnect(), and CLAM::InPortBase::mVisuallyConnectedOutPort.
void CLAM::InPort< Token >::AttachRegionToOutPort | ( | OutPortBase * | out, | |
ProperWritingRegion & | writer | |||
) | [inline] |
This method is intended to be used only for the OutPort.
A user shouldn't call it directly. Instead , use ConnectToIn method in OutPortBase.
Definition at line 163 of file InPort.hxx.
References CLAM::WritingRegion< Token, DataStructure >::LinkRegions(), CLAM::InPort< Token >::mRegion, and CLAM::InPortBase::mVisuallyConnectedOutPort.
Referenced by CLAM::OutPort< Token >::ConnectToConcreteIn().
bool CLAM::InPort< Token >::CanConsume | ( | ) | [inline, virtual] |
Implements CLAM::InPortBase.
Definition at line 157 of file InPort.hxx.
References CLAM::ReadingRegion< WritingRegion >::CanConsume(), and CLAM::InPort< Token >::mRegion.
void CLAM::InPort< Token >::Consume | ( | ) | [inline] |
Definition at line 151 of file InPort.hxx.
References CLAM::ReadingRegion< WritingRegion >::Consume(), and CLAM::InPort< Token >::mRegion.
Referenced by CLAM::Vocoder::Do(), CLAM::TokenDelay< T >::Do(), CLAM::SynthSineSpectrum::Do(), CLAM::SpectrumAdder2::Do(), CLAM::SpectralSynthesis::Do(), CLAM::SpectralSpread::Do(), CLAM::SpectralShapeShift::Do(), CLAM::SpectralRingModulation::Do(), CLAM::SpectralReverse::Do(), CLAM::SpectralReject::Do(), CLAM::SpectralPhaseModulation::Do(), CLAM::SpectralPeakDetect::Do(), CLAM::SpectralNotch::Do(), CLAM::SpectralLimiter::Do(), CLAM::SpectralGate::Do(), CLAM::SpectralFocus::Do(), CLAM::SpectralExciter::Do(), CLAM::SpectralDelay::Do(), CLAM::SpectralCombTriang::Do(), CLAM::SpectralCombDelta::Do(), CLAM::SpectralAverage::Do(), CLAM::SpectralAnalysis::Do(), CLAM::SpectralAmplitudeModulation::Do(), CLAM::SMSTranspose::Do(), CLAM::SMSTimeStretch::Do(), CLAM::SMSSpectralShapeShift::Do(), CLAM::SMSSinusoidalGain::Do(), CLAM::SMSSineFilter::Do(), CLAM::SMSResidualGain::Do(), CLAM::SMSPitchShift::Do(), CLAM::SMSPitchDiscretization::Do(), CLAM::SMSOddEvenHarmonicRatio::Do(), CLAM::SMSMorph::Do(), CLAM::SMSHarmonizer::Do(), CLAM::SMSGenderChange::Do(), CLAM::SMSFreqShift::Do(), CLAM::SMSDeesser::Do(), CLAM::SinTracking::Do(), CLAM::SampleAndHold::Do(), CLAM::Robotization::Do(), CLAM::RandomPhase::Do(), CLAM::Peakalizer::Do(), CLAM::Partializer::Do(), CLAM::OverlapAdd::Do(), CLAM::Oscillator::Do(), CLAM::OscillatingSpectralNotch::Do(), CLAM::NoSpectralTransformation::Do(), CLAM::MonoAudioFileWriter::Do(), CLAM::IFFT_ooura::Do(), CLAM::HumRemover::Do(), CLAM::FundFreqDetect::Do(), CLAM::Fundamental2Control::Do(), CLAM::Fund2MIDI::Do(), CLAM::FreqShift::Do(), CLAM::FFT_ooura::Do(), CLAM::FFT_fftw3::Do(), CLAM::EnvelopeGenerator::Do(), CLAM::Deesser::Do(), CLAM::CircularShift::Do(), CLAM::BinaryAudioOp< Multiply< TData > >::Do(), CLAM::ThreeBandAM::Do(), CLAM::ThreeBandGate::Do(), CLAM::ThreeBandFilter::Do(), CLAM::ThreeBandCompressor::Do(), and CLAM::IFFT_fftw3::SetPrototypes().
Token & CLAM::InPort< Token >::GetData | ( | int | offset = 0 |
) | [inline] |
Definition at line 121 of file InPort.hxx.
References CLAM::InPort< Token >::mRegion.
Referenced by CLAM::Vocoder::Do(), CLAM::TokenDelay< T >::Do(), CLAM::SynthSineSpectrum::Do(), CLAM::SpectrumAdder2::Do(), CLAM::SpectralSynthesis::Do(), CLAM::SpectralSpread::Do(), CLAM::SpectralShapeShift::Do(), CLAM::SpectralRingModulation::Do(), CLAM::SpectralReverse::Do(), CLAM::SpectralReject::Do(), CLAM::SpectralPhaseModulation::Do(), CLAM::SpectralPeakDetect::Do(), CLAM::SpectralPeakArrayInterpolator::Do(), CLAM::SpectralNotch::Do(), CLAM::SpectralLimiter::Do(), CLAM::SpectralGate::Do(), CLAM::SpectralFocus::Do(), CLAM::SpectralExciter::Do(), CLAM::SpectralDelay::Do(), CLAM::SpectralCombTriang::Do(), CLAM::SpectralCombDelta::Do(), CLAM::SpectralAverage::Do(), CLAM::SpectralAmplitudeModulation::Do(), CLAM::SMSTranspose::Do(), CLAM::SMSTimeStretch::Do(), CLAM::SMSSpectralShapeShift::Do(), CLAM::SMSSinusoidalGain::Do(), CLAM::SMSSineFilter::Do(), CLAM::SMSResidualGain::Do(), CLAM::SMSPitchShift::Do(), CLAM::SMSPitchDiscretization::Do(), CLAM::SMSOddEvenHarmonicRatio::Do(), CLAM::SMSMorph::Do(), CLAM::SMSHarmonizer::Do(), CLAM::SMSGenderChange::Do(), CLAM::SMSFreqShift::Do(), CLAM::SMSDeesser::Do(), CLAM::SinTracking::Do(), CLAM::SDIFOut::Do(), CLAM::SampleAndHold::Do(), CLAM::Robotization::Do(), CLAM::RandomPhase::Do(), CLAM::Peakalizer::Do(), CLAM::Partializer::Do(), CLAM::OscillatingSpectralNotch::Do(), CLAM::NoSpectralTransformation::Do(), CLAM::IFFT_ooura::Do(), CLAM::HumRemover::Do(), CLAM::FundFreqDetect::Do(), CLAM::Fundamental2Control::Do(), CLAM::Fund2MIDI::Do(), CLAM::FreqShift::Do(), CLAM::EnvelopeGenerator::Do(), CLAM::Deesser::Do(), CLAM::ThreeBandAM::Do(), CLAM::ThreeBandGate::Do(), CLAM::ThreeBandFilter::Do(), CLAM::ThreeBandCompressor::Do(), and CLAM::IFFT_fftw3::SetPrototypes().
int CLAM::InPort< Token >::GetHop | ( | ) | [inline, virtual] |
Implements CLAM::InPortBase.
Definition at line 139 of file InPort.hxx.
References CLAM::Region::Hop(), and CLAM::InPort< Token >::mRegion.
int CLAM::InPort< Token >::GetSize | ( | ) | [inline, virtual] |
Implements CLAM::InPortBase.
Definition at line 133 of file InPort.hxx.
References CLAM::InPort< Token >::mRegion, and CLAM::Region::Size().
Referenced by CLAM::FFT_ooura::Do(), and CLAM::FFT_fftw3::Do().
virtual const std::type_info& CLAM::InPort< Token >::GetTypeId | ( | ) | const [inline, virtual] |
Implements CLAM::InPortBase.
Definition at line 94 of file InPort.hxx.
void CLAM::InPort< Token >::SetHop | ( | int | hop | ) | [inline, virtual] |
Implements CLAM::InPortBase.
Definition at line 145 of file InPort.hxx.
References CLAM::Region::Hop(), and CLAM::InPort< Token >::mRegion.
void CLAM::InPort< Token >::SetSize | ( | int | newSize | ) | [inline, virtual] |
Implements CLAM::InPortBase.
Definition at line 127 of file InPort.hxx.
References CLAM::InPort< Token >::mRegion, and CLAM::Region::Size().
void CLAM::InPort< Token >::UnAttachRegion | ( | ) | [inline, virtual] |
This method is intended to be used only for the OutPort.
A user shouldn't call it directly. Instead , use DisconnectFromIn method in OutPortBase.
Implements CLAM::InPortBase.
Definition at line 170 of file InPort.hxx.
References CLAM_DEBUG_ASSERT, CLAM::InPort< Token >::mRegion, CLAM::InPortBase::mVisuallyConnectedOutPort, CLAM::ReadingRegion< WritingRegion >::ProducerRegion(), and CLAM::Region::RemoveRegion().
Referenced by CLAM::OutPort< Token >::DisconnectFromConcreteIn().
ProperReadingRegion CLAM::InPort< Token >::mRegion [protected] |
Definition at line 97 of file InPort.hxx.
Referenced by CLAM::InPort< Token >::AttachRegionToOutPort(), CLAM::InPort< Token >::CanConsume(), CLAM::InPort< Token >::Consume(), CLAM::InPort< Token >::GetData(), CLAM::InPort< Token >::GetHop(), CLAM::InPort< Token >::GetSize(), CLAM::InPort< Token >::SetHop(), CLAM::InPort< Token >::SetSize(), and CLAM::InPort< Token >::UnAttachRegion().