#include <Region.hxx>
Public Types | |
typedef std::list< Region * > | ReadingRegionsList |
typedef ReadingRegionsList::iterator | ReadingRegionsIterator |
Public Member Functions | |
Region () | |
virtual | ~Region () |
const long & | Pos () const |
const int & | Size () const |
const int & | Hop () const |
const int & | BeginDistance () |
void | Pos (const long &pos) |
void | Size (const int &size) |
void | Hop (const int &hop) |
void | BeginDistance (const int &dist) |
virtual void | RemoveProducer () |
virtual Region * | ProducerRegion ()=0 |
virtual ReadingRegionsIterator | BeginReaders ()=0 |
virtual ReadingRegionsIterator | EndReaders ()=0 |
virtual void | RemoveRegion (Region &Region) |
Protected Member Functions | |
virtual void | SizeChanged (const int &newSize)=0 |
Definition at line 30 of file Region.hxx.
typedef ReadingRegionsList::iterator CLAM::Region::ReadingRegionsIterator |
Definition at line 34 of file Region.hxx.
typedef std::list<Region*> CLAM::Region::ReadingRegionsList |
Definition at line 33 of file Region.hxx.
CLAM::Region::Region | ( | ) |
Definition at line 28 of file Region.cxx.
CLAM::Region::~Region | ( | ) | [virtual] |
Definition at line 33 of file Region.cxx.
void CLAM::Region::BeginDistance | ( | const int & | dist | ) |
Definition at line 57 of file Region.cxx.
const int & CLAM::Region::BeginDistance | ( | ) |
Definition at line 52 of file Region.cxx.
Referenced by CLAM::WritingRegion< Token, DataStructure >::CenterEvenRegions(), CLAM::WritingRegion< Token, DataStructure >::GetLastWrittenData(), CLAM::ReadingRegion< WritingRegion >::LinkProducerRegion(), CLAM::WritingRegion< Token, DataStructure >::operator[](), CLAM::ReadingRegion< WritingRegion >::operator[](), and CLAM::StreamImpl< Token, PhantomBuffer >::WriterHasAdvanced().
virtual ReadingRegionsIterator CLAM::Region::BeginReaders | ( | ) | [pure virtual] |
Implemented in CLAM::ReadingRegion< WritingRegion >, CLAM::WritingRegion< Token, DataStructure >, CLAM::ReadingRegion< WritingRegion< MelSpectrum, PhantomBuffer > >, CLAM::ReadingRegion< WritingRegion< Fundamental, PhantomBuffer > >, CLAM::ReadingRegion< WritingRegion< DiscontinuousSegmentation, PhantomBuffer > >, CLAM::ReadingRegion< WritingRegion< SpectralPeakArray, PhantomBuffer > >, CLAM::ReadingRegion< WritingRegion< Audio, PhantomBuffer > >, CLAM::ReadingRegion< WritingRegion< Envelope, PhantomBuffer > >, CLAM::ReadingRegion< WritingRegion< std::pair< CLAM::TData, CLAM::TData >, PhantomBuffer > >, CLAM::ReadingRegion< WritingRegion< Frame, PhantomBuffer > >, CLAM::ReadingRegion< WritingRegion< MIDIMelody, PhantomBuffer > >, CLAM::ReadingRegion< WritingRegion< Token, DataStructure > >, CLAM::ReadingRegion< WritingRegion< MelCepstrum, PhantomBuffer > >, CLAM::ReadingRegion< WritingRegion< T, PhantomBuffer > >, CLAM::ReadingRegion< WritingRegion< Segment, PhantomBuffer > >, CLAM::ReadingRegion< WritingRegion< std::vector< std::pair< CLAM::TData, CLAM::TData > >, PhantomBuffer > >, CLAM::ReadingRegion< WritingRegion< Spectrum, PhantomBuffer > >, CLAM::ReadingRegion< WritingRegion< MIDISong, PhantomBuffer > >, CLAM::ReadingRegion< WritingRegion< std::vector< CLAM::TData >, PhantomBuffer > >, CLAM::ReadingRegion< WritingRegion< Token, PhantomBuffer > >, CLAM::ReadingRegion< WritingRegion< LPModel, PhantomBuffer > >, CLAM::ReadingRegion< WritingRegion< TData, PhantomBuffer > >, CLAM::WritingRegion< TData >, CLAM::WritingRegion< MelCepstrum >, CLAM::WritingRegion< Token >, CLAM::WritingRegion< MIDIMelody >, CLAM::WritingRegion< std::pair< CLAM::TData, CLAM::TData > >, CLAM::WritingRegion< T >, CLAM::WritingRegion< Envelope >, CLAM::WritingRegion< std::vector< std::pair< CLAM::TData, CLAM::TData > > >, CLAM::WritingRegion< Segment >, CLAM::WritingRegion< DiscontinuousSegmentation >, CLAM::WritingRegion< MIDISong >, CLAM::WritingRegion< SpectralPeakArray >, CLAM::WritingRegion< LPModel >, CLAM::WritingRegion< Frame >, CLAM::WritingRegion< Fundamental >, CLAM::WritingRegion< std::vector< CLAM::TData > >, CLAM::WritingRegion< Spectrum >, CLAM::WritingRegion< Audio >, and CLAM::WritingRegion< MelSpectrum >.
virtual ReadingRegionsIterator CLAM::Region::EndReaders | ( | ) | [pure virtual] |
Implemented in CLAM::ReadingRegion< WritingRegion >, CLAM::WritingRegion< Token, DataStructure >, CLAM::ReadingRegion< WritingRegion< MelSpectrum, PhantomBuffer > >, CLAM::ReadingRegion< WritingRegion< Fundamental, PhantomBuffer > >, CLAM::ReadingRegion< WritingRegion< DiscontinuousSegmentation, PhantomBuffer > >, CLAM::ReadingRegion< WritingRegion< SpectralPeakArray, PhantomBuffer > >, CLAM::ReadingRegion< WritingRegion< Audio, PhantomBuffer > >, CLAM::ReadingRegion< WritingRegion< Envelope, PhantomBuffer > >, CLAM::ReadingRegion< WritingRegion< std::pair< CLAM::TData, CLAM::TData >, PhantomBuffer > >, CLAM::ReadingRegion< WritingRegion< Frame, PhantomBuffer > >, CLAM::ReadingRegion< WritingRegion< MIDIMelody, PhantomBuffer > >, CLAM::ReadingRegion< WritingRegion< Token, DataStructure > >, CLAM::ReadingRegion< WritingRegion< MelCepstrum, PhantomBuffer > >, CLAM::ReadingRegion< WritingRegion< T, PhantomBuffer > >, CLAM::ReadingRegion< WritingRegion< Segment, PhantomBuffer > >, CLAM::ReadingRegion< WritingRegion< std::vector< std::pair< CLAM::TData, CLAM::TData > >, PhantomBuffer > >, CLAM::ReadingRegion< WritingRegion< Spectrum, PhantomBuffer > >, CLAM::ReadingRegion< WritingRegion< MIDISong, PhantomBuffer > >, CLAM::ReadingRegion< WritingRegion< std::vector< CLAM::TData >, PhantomBuffer > >, CLAM::ReadingRegion< WritingRegion< Token, PhantomBuffer > >, CLAM::ReadingRegion< WritingRegion< LPModel, PhantomBuffer > >, CLAM::ReadingRegion< WritingRegion< TData, PhantomBuffer > >, CLAM::WritingRegion< TData >, CLAM::WritingRegion< MelCepstrum >, CLAM::WritingRegion< Token >, CLAM::WritingRegion< MIDIMelody >, CLAM::WritingRegion< std::pair< CLAM::TData, CLAM::TData > >, CLAM::WritingRegion< T >, CLAM::WritingRegion< Envelope >, CLAM::WritingRegion< std::vector< std::pair< CLAM::TData, CLAM::TData > > >, CLAM::WritingRegion< Segment >, CLAM::WritingRegion< DiscontinuousSegmentation >, CLAM::WritingRegion< MIDISong >, CLAM::WritingRegion< SpectralPeakArray >, CLAM::WritingRegion< LPModel >, CLAM::WritingRegion< Frame >, CLAM::WritingRegion< Fundamental >, CLAM::WritingRegion< std::vector< CLAM::TData > >, CLAM::WritingRegion< Spectrum >, CLAM::WritingRegion< Audio >, and CLAM::WritingRegion< MelSpectrum >.
void CLAM::Region::Hop | ( | const int & | hop | ) |
Definition at line 73 of file Region.cxx.
References CLAM_ASSERT.
const int & CLAM::Region::Hop | ( | ) | const |
Definition at line 47 of file Region.cxx.
Referenced by CLAM::WritingRegion< Token, DataStructure >::CenterEvenRegions(), CLAM::ReadingRegion< WritingRegion >::Consume(), CLAM::OutPort< Token >::GetHop(), CLAM::InPort< Token >::GetHop(), CLAM::WritingRegion< Token, DataStructure >::Produce(), CLAM::OutPort< Token >::SetHop(), CLAM::InPort< Token >::SetHop(), and CLAM::StreamImpl< Token, DataStructure >::WriterHasAdvanced().
void CLAM::Region::Pos | ( | const long & | pos | ) |
Definition at line 62 of file Region.cxx.
const long & CLAM::Region::Pos | ( | ) | const |
Definition at line 37 of file Region.cxx.
Referenced by CLAM::ReadingRegion< WritingRegion >::CanConsume(), CLAM::WritingRegion< Token, DataStructure >::CanProduce(), CLAM::WritingRegion< Token, DataStructure >::CenterEvenRegions(), CLAM::ReadingRegion< WritingRegion >::Consume(), CLAM::WritingRegion< Token, DataStructure >::FulfilsInvariant(), CLAM::ReadingRegion< WritingRegion >::LinkProducerRegion(), CLAM::WritingRegion< Token, DataStructure >::Produce(), and CLAM::WritingRegion< Token, DataStructure >::RearmostReadingPos().
virtual Region* CLAM::Region::ProducerRegion | ( | ) | [pure virtual] |
Implemented in CLAM::ReadingRegion< WritingRegion >, CLAM::WritingRegion< Token, DataStructure >, CLAM::ReadingRegion< WritingRegion< MelSpectrum, PhantomBuffer > >, CLAM::ReadingRegion< WritingRegion< Fundamental, PhantomBuffer > >, CLAM::ReadingRegion< WritingRegion< DiscontinuousSegmentation, PhantomBuffer > >, CLAM::ReadingRegion< WritingRegion< SpectralPeakArray, PhantomBuffer > >, CLAM::ReadingRegion< WritingRegion< Audio, PhantomBuffer > >, CLAM::ReadingRegion< WritingRegion< Envelope, PhantomBuffer > >, CLAM::ReadingRegion< WritingRegion< std::pair< CLAM::TData, CLAM::TData >, PhantomBuffer > >, CLAM::ReadingRegion< WritingRegion< Frame, PhantomBuffer > >, CLAM::ReadingRegion< WritingRegion< MIDIMelody, PhantomBuffer > >, CLAM::ReadingRegion< WritingRegion< Token, DataStructure > >, CLAM::ReadingRegion< WritingRegion< MelCepstrum, PhantomBuffer > >, CLAM::ReadingRegion< WritingRegion< T, PhantomBuffer > >, CLAM::ReadingRegion< WritingRegion< Segment, PhantomBuffer > >, CLAM::ReadingRegion< WritingRegion< std::vector< std::pair< CLAM::TData, CLAM::TData > >, PhantomBuffer > >, CLAM::ReadingRegion< WritingRegion< Spectrum, PhantomBuffer > >, CLAM::ReadingRegion< WritingRegion< MIDISong, PhantomBuffer > >, CLAM::ReadingRegion< WritingRegion< std::vector< CLAM::TData >, PhantomBuffer > >, CLAM::ReadingRegion< WritingRegion< Token, PhantomBuffer > >, CLAM::ReadingRegion< WritingRegion< LPModel, PhantomBuffer > >, CLAM::ReadingRegion< WritingRegion< TData, PhantomBuffer > >, CLAM::WritingRegion< TData >, CLAM::WritingRegion< MelCepstrum >, CLAM::WritingRegion< Token >, CLAM::WritingRegion< MIDIMelody >, CLAM::WritingRegion< std::pair< CLAM::TData, CLAM::TData > >, CLAM::WritingRegion< T >, CLAM::WritingRegion< Envelope >, CLAM::WritingRegion< std::vector< std::pair< CLAM::TData, CLAM::TData > > >, CLAM::WritingRegion< Segment >, CLAM::WritingRegion< DiscontinuousSegmentation >, CLAM::WritingRegion< MIDISong >, CLAM::WritingRegion< SpectralPeakArray >, CLAM::WritingRegion< LPModel >, CLAM::WritingRegion< Frame >, CLAM::WritingRegion< Fundamental >, CLAM::WritingRegion< std::vector< CLAM::TData > >, CLAM::WritingRegion< Spectrum >, CLAM::WritingRegion< Audio >, and CLAM::WritingRegion< MelSpectrum >.
Referenced by CLAM::StreamImpl< Token, PhantomBuffer >::NewReadingRegionSize(), CLAM::StreamImpl< Token, PhantomBuffer >::NewWritingRegionSize(), and CLAM::WritingRegion< Token, DataStructure >::RemoveRegion().
virtual void CLAM::Region::RemoveProducer | ( | ) | [inline, virtual] |
Reimplemented in CLAM::ReadingRegion< WritingRegion >, CLAM::ReadingRegion< WritingRegion< MelSpectrum, PhantomBuffer > >, CLAM::ReadingRegion< WritingRegion< Fundamental, PhantomBuffer > >, CLAM::ReadingRegion< WritingRegion< DiscontinuousSegmentation, PhantomBuffer > >, CLAM::ReadingRegion< WritingRegion< SpectralPeakArray, PhantomBuffer > >, CLAM::ReadingRegion< WritingRegion< Audio, PhantomBuffer > >, CLAM::ReadingRegion< WritingRegion< Envelope, PhantomBuffer > >, CLAM::ReadingRegion< WritingRegion< std::pair< CLAM::TData, CLAM::TData >, PhantomBuffer > >, CLAM::ReadingRegion< WritingRegion< Frame, PhantomBuffer > >, CLAM::ReadingRegion< WritingRegion< MIDIMelody, PhantomBuffer > >, CLAM::ReadingRegion< WritingRegion< Token, DataStructure > >, CLAM::ReadingRegion< WritingRegion< MelCepstrum, PhantomBuffer > >, CLAM::ReadingRegion< WritingRegion< T, PhantomBuffer > >, CLAM::ReadingRegion< WritingRegion< Segment, PhantomBuffer > >, CLAM::ReadingRegion< WritingRegion< std::vector< std::pair< CLAM::TData, CLAM::TData > >, PhantomBuffer > >, CLAM::ReadingRegion< WritingRegion< Spectrum, PhantomBuffer > >, CLAM::ReadingRegion< WritingRegion< MIDISong, PhantomBuffer > >, CLAM::ReadingRegion< WritingRegion< std::vector< CLAM::TData >, PhantomBuffer > >, CLAM::ReadingRegion< WritingRegion< Token, PhantomBuffer > >, CLAM::ReadingRegion< WritingRegion< LPModel, PhantomBuffer > >, and CLAM::ReadingRegion< WritingRegion< TData, PhantomBuffer > >.
Definition at line 49 of file Region.hxx.
Referenced by CLAM::WritingRegion< Token, DataStructure >::RemoveRegion().
virtual void CLAM::Region::RemoveRegion | ( | Region & | Region | ) | [inline, virtual] |
Reimplemented in CLAM::WritingRegion< Token, DataStructure >, CLAM::WritingRegion< TData >, CLAM::WritingRegion< MelCepstrum >, CLAM::WritingRegion< Token >, CLAM::WritingRegion< MIDIMelody >, CLAM::WritingRegion< std::pair< CLAM::TData, CLAM::TData > >, CLAM::WritingRegion< T >, CLAM::WritingRegion< Envelope >, CLAM::WritingRegion< std::vector< std::pair< CLAM::TData, CLAM::TData > > >, CLAM::WritingRegion< Segment >, CLAM::WritingRegion< DiscontinuousSegmentation >, CLAM::WritingRegion< MIDISong >, CLAM::WritingRegion< SpectralPeakArray >, CLAM::WritingRegion< LPModel >, CLAM::WritingRegion< Frame >, CLAM::WritingRegion< Fundamental >, CLAM::WritingRegion< std::vector< CLAM::TData > >, CLAM::WritingRegion< Spectrum >, CLAM::WritingRegion< Audio >, and CLAM::WritingRegion< MelSpectrum >.
Definition at line 53 of file Region.hxx.
Referenced by CLAM::InPort< Token >::UnAttachRegion(), and CLAM::ReadingRegion< WritingRegion >::~ReadingRegion().
void CLAM::Region::Size | ( | const int & | size | ) |
Definition at line 67 of file Region.cxx.
References SizeChanged().
const int & CLAM::Region::Size | ( | ) | const |
Definition at line 42 of file Region.cxx.
Referenced by CLAM::ReadingRegion< WritingRegion >::CanConsume(), CLAM::WritingRegion< Token, DataStructure >::CanProduce(), CLAM::WritingRegion< Token, DataStructure >::CenterEvenRegions(), CLAM::WritingRegion< Token, DataStructure >::ClearData(), CLAM::WritingRegion< Token, DataStructure >::FulfilsInvariant(), CLAM::OutPort< Token >::GetSize(), CLAM::InPort< Token >::GetSize(), CLAM::StreamImpl< Token, PhantomBuffer >::NewWritingRegionSize(), CLAM::StreamImpl< Token, DataStructure >::NewWritingRegionSize(), CLAM::WritingRegion< Token, DataStructure >::operator[](), CLAM::ReadingRegion< WritingRegion >::operator[](), CLAM::OutPort< Token >::SetSize(), CLAM::InPort< Token >::SetSize(), CLAM::StreamImpl< Token, PhantomBuffer >::WriterHasAdvanced(), and CLAM::WritingRegion< Token, DataStructure >::WritingRegion().
virtual void CLAM::Region::SizeChanged | ( | const int & | newSize | ) | [protected, pure virtual] |
Referenced by Size().