CLAM::InPort< Token > Class Template Reference

#include <InPort.hxx>

List of all members.

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

Detailed Description

template<typename Token>
class CLAM::InPort< Token >

Definition at line 64 of file InPort.hxx.


Constructor & Destructor Documentation

template<class Token >
CLAM::InPort< Token >::InPort ( const std::string &  name = "unnamed in port",
Processing proc = 0 
) [inline]

Definition at line 107 of file InPort.hxx.

template<class Token >
CLAM::InPort< Token >::~InPort (  )  [inline, virtual]

Member Function Documentation

template<class Token >
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().

template<class Token >
bool CLAM::InPort< Token >::CanConsume (  )  [inline, virtual]
template<class Token >
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().

template<class Token >
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().

template<class Token >
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.

template<class Token >
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().

template<typename Token>
virtual const std::type_info& CLAM::InPort< Token >::GetTypeId (  )  const [inline, virtual]

Implements CLAM::InPortBase.

Definition at line 94 of file InPort.hxx.

template<class Token >
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.

template<class Token >
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().

template<class Token >
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().


Member Data Documentation

template<typename Token>
ProperReadingRegion CLAM::InPort< Token >::mRegion [protected]

The documentation for this class was generated from the following file:
Generated by  doxygen 1.6.3