CLAM-Development
1.4.0
|
#include <Array.hxx>
Public Member Functions | |
Array (TSize size=0, TSize step=1) | |
void | Init () |
Array (T *ptr, int size=0) | |
Array (const Array< T > &originalArray) | |
~Array () | |
const char * | GetClassName () const |
Return the class name. | |
bool | OwnsMemory () const |
bool | Empty () const |
TSize | Size (void) const |
TSize | SizeInBytes (void) const |
TSize | AllocatedSize (void) const |
TSize | AllocatedSizeInBytes (void) const |
void | SetSize (TSize size) |
void | SetStep (TSize step) |
TSize | GetStep () const |
void | Resize (TSize newAllocSize) |
const T * | GetPtr (void) const |
T * | GetPtr (void) |
void | SetPtr (T *ptr, int size=0) |
void | GiveChunk (int pos, int size, Array< T > &) const |
void | CopyChunk (int pos, int size, Array< T > &) const |
const T & | operator[] (const int &i) const |
T & | operator[] (const int &i) |
void | AddElem (const T &elem) |
void | InsertElem (int where, const T &elem) |
void | SetElem (int where, const T &elem) |
void | DeleteElem (int where) |
Array< T > & | operator= (const Array< T > &src) |
Array< T > & | operator+= (const Array< T > &src) |
void | Apply (T(*f)(T)) |
void | Apply (T(*f)(T, int), int parameter) |
void | StoreOn (Storage &storage) const |
Stores component's subitems on the given Storage. | |
void | LoadFrom (Storage &storage) |
Loads component's subitems from the given Storage. | |
![]() | |
virtual | ~Component () |
virtual Component * | ShallowCopy () const |
virtual Component * | DeepCopy () const |
Static Public Attributes | |
static const char * | msgSetSizeOutOfRange = "You can probably fix this calling Resize() befor SetSize()." |
static const char * | msgIndexOutOfRange = "This is now needed. Just calling Resize() is not enough any more." |
static const char * | msgInsertOutOfRange = "Array::InsertElem: Index out of range" |
static const char * | msgDeleteOutOfRange = "Array::DeleteElem: Index out of range" |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 189 of file Array.hxx.
Referenced by CLAM::MIDI2Melody::AddNote(), CLAM::Normalization::ComputeScaleFactorFromDominantEnergy(), CLAM::Dispatcher::ConcreteConfigure(), CLAM::SMSTransformationChain::ConcreteStart(), CLAM::ConvertToArray(), CLAM::CleanTracks::Do(), CLAM::SpectralSpread::Do(), CLAM::SpectralFocus::Do(), and CLAM::SpectralPeakDetect::Do().
|
inline |
Definition at line 100 of file Array.hxx.
Referenced by CLAM::BPFTmpl< TData, TData >::AllocatedSize(), CLAM::BPFTmpl< TX, TY >::BPFTmpl(), CLAM::Array< TGuide >::operator=(), CLAM::SpectralPeakArray::ResetIndices(), CLAM::Array< TGuide >::Resize(), and CLAM::Array< TGuide >::SetSize().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 420 of file Array.hxx.
References CLAM_ASSERT.
|
inline |
Definition at line 215 of file Array.hxx.
Referenced by CLAM::MIDI2Melody::DeleteNoteFromIndex().
|
inline |
|
inlinevirtual |
|
inline |
Definition at line 153 of file Array.hxx.
Referenced by CLAM::LPC_AutoCorrelation::ComputeAutocorrelation(), CLAM::SpectralDescriptors::ComputeLowFreqEnergyRelation(), CLAM::Normalization::ComputeScaleFactorFromAvgEnergy(), CLAM::Normalization::ComputeScaleFactorFromDominantEnergy(), CLAM::Normalization::ComputeScaleFactorFromMaxEnergy(), CLAM::MultiChannelAudioFileReader::ConcreteConfigure(), CLAM::MultiChannelAudioFileWriter::Do(), CLAM::LPC_AutoCorrelation::Do(), CLAM::CircularShift::Do(), CLAM::WindowGenerator::Do(), CLAM::Segmentation::LoadFrom(), CLAM::PoweredSum< o, abs, T >::operator()(), CLAM::LogSumTmpl< FrameDescriptors >::operator()(), CLAM::InnerProductTmpl< T >::operator()(), CLAM::WeightedPoweredSum< o, abs, T >::operator()(), CLAM::CrossWeightedPoweredSum< o, abs, T >::operator()(), CLAM::BiasedPoweredSum< o, abs, T, U >::operator()(), CLAM::ComplexMinElement< abs, FrameDescriptors >::operator()(), CLAM::ComplexMaxElement< abs, FrameDescriptors >::operator()(), CLAM::Array< TGuide >::operator=(), CLAM::CircularBuffer< TData >::Read(), and CLAM::CircularBuffer< TData >::Write().
|
inline |
|
inline |
Definition at line 118 of file Array.hxx.
Referenced by CLAM::BPFTmpl< TData, TData >::GetStep().
|
inline |
Definition at line 412 of file Array.hxx.
References CLAM_ASSERT, and CLAM::Array< T >::SetPtr().
|
inline |
|
inline |
|
inlinevirtual |
Loads component's subitems from the given Storage.
storage | The given storage where the subitem will be loaded from |
Implements CLAM::Component.
Definition at line 285 of file Array.hxx.
Referenced by CLAM::Segmentation::LoadFrom().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 95 of file Array.hxx.
Referenced by CLAM::Array< TGuide >::AddElem(), CLAM::Array< TGuide >::DeleteElem(), CLAM::Array< TGuide >::InsertElem(), CLAM::Array< TGuide >::operator=(), CLAM::Array< TGuide >::Resize(), CLAM::Array< TGuide >::SetPtr(), and CLAM::Array< TGuide >::SetSize().
|
inline |
Definition at line 120 of file Array.hxx.
Referenced by CLAM::Add(), CLAM::Array< TGuide >::AddElem(), CLAM::Array< TGuide >::Array(), CLAM::AssertProperSize(), CLAM::MultiChannelAudioFileWriter::ConcreteConfigure(), CLAM::CepstralTransform::ConcreteConfigure(), CLAM::AudioMixerConfig::DefaultInit(), CLAM::Array< TGuide >::DeleteElem(), CLAM::LPC_AutoCorrelation::Do(), CLAM::FreqShift::Do(), CLAM::SpectralReverse::Do(), CLAM::SpectralAverage::Do(), CLAM::Peakalizer::Do(), CLAM::SpectralCombDelta::Do(), CLAM::Partializer::Do(), CLAM::Vocoder::Do(), CLAM::CepstralTransform::Do(), CLAM::CleanTracks::Do(), CLAM::SpectralEnvelopeExtract::Do(), CLAM::MelFilterBank::Do(), CLAM::PhaseManagement::DoRandomPhases(), CLAM::UnsizedSegmentation::fillArray(), CLAM::ContiguousSegmentation::fillArray(), CLAM::DiscontinuousSegmentation::fillArray(), CLAM::StatsTmpl< false, FrameDescriptors, FrameDescriptors >::GetCenterOfGravities(), CLAM::StatsTmpl< false, FrameDescriptors, FrameDescriptors >::GetCentralMoments(), CLAM::StatsTmpl< false, FrameDescriptors, FrameDescriptors >::GetMoments(), CLAM::Array< TGuide >::Init(), CLAM::PhaseManagement::Init(), CLAM::MelFilterBank::InitializeTables(), CLAM::SpectralPeakArray::InitIndices(), CLAM::Array< TGuide >::InsertElem(), CLAM::Multiply(), CLAM::Array< TGuide >::operator+=(), CLAM::Array< TGuide >::operator=(), CLAM::IntervalAmplitudeAverages::Reconfigure(), CLAM::SpectralPeakArray::ResetIndices(), CLAM::BPFTmpl< TData, TData >::Resize(), CLAM::PhaseManagement::SetLastPhasesAndFreqs(), and CLAM::LPModel::ToSpectrum().
|
inline |
|
inline |
Definition at line 156 of file Array.hxx.
Referenced by CLAM::Normalization::ComputeScaleFactorFromAvgEnergy(), CLAM::Normalization::ComputeScaleFactorFromDominantEnergy(), CLAM::Normalization::ComputeScaleFactorFromMaxEnergy(), CLAM::Audio::GetAudioSlice(), CLAM::Array< T >::GiveChunk(), and CLAM::CircularBuffer< TData >::NonCopyRead().
|
inline |
Definition at line 103 of file Array.hxx.
Referenced by CLAM::Add(), CLAM::Array< TGuide >::Array(), CLAM::AssertProperSize(), CLAM::BPFTmpl< TX, TY >::BPFTmpl(), CLAM::Normalization::ComputeScaleFactorFromAvgEnergy(), CLAM::Normalization::ComputeScaleFactorFromDominantEnergy(), CLAM::Normalization::ComputeScaleFactorFromMaxEnergy(), CLAM::MultiChannelAudioFileWriter::ConcreteConfigure(), CLAM::CepstralTransform::ConcreteConfigure(), CLAM::BPFTmpl< TX, TY >::CreateSplineTable(), CLAM::AudioMixerConfig::DefaultInit(), CLAM::LPC_AutoCorrelation::Do(), CLAM::FreqShift::Do(), CLAM::SpectralReverse::Do(), CLAM::SpectralAverage::Do(), CLAM::Peakalizer::Do(), CLAM::SpectralCombDelta::Do(), CLAM::Partializer::Do(), CLAM::CepstralTransform::Do(), CLAM::Vocoder::Do(), CLAM::SpectralEnvelopeExtract::Do(), CLAM::MelFilterBank::Do(), CLAM::SpectralSpread::Do(), CLAM::SpectralFocus::Do(), CLAM::PhaseManagement::DoRandomPhases(), CLAM::UnsizedSegmentation::fillArray(), CLAM::ContiguousSegmentation::fillArray(), CLAM::DiscontinuousSegmentation::fillArray(), CLAM::Audio::GetAudioSlice(), CLAM::StatsTmpl< false, FrameDescriptors, FrameDescriptors >::GetCenterOfGravities(), CLAM::StatsTmpl< false, FrameDescriptors, FrameDescriptors >::GetCentralMoments(), CLAM::StatsTmpl< false, FrameDescriptors, FrameDescriptors >::GetMoments(), CLAM::PhaseManagement::Init(), CLAM::Array< TGuide >::Init(), CLAM::MelFilterBank::InitializeTables(), CLAM::SpectralPeakArray::InitIndices(), CLAM::SMSTransformationChain::InitSegmentArray(), CLAM::MatrixTmpl< T >::MatrixTmpl(), CLAM::Multiply(), CLAM::IntervalAmplitudeAverages::Reconfigure(), CLAM::SpectralPeakArray::ResetIndices(), CLAM::PhaseManagement::SetLastPhasesAndFreqs(), CLAM::BPFTmpl< TData, TData >::SetSize(), CLAM::StatsTmpl< false, FrameDescriptors, FrameDescriptors >::StatsTmpl(), and CLAM::LPModel::ToSpectrum().
|
inline |
Definition at line 116 of file Array.hxx.
Referenced by CLAM::BPFTmpl< TData, TData >::SetStep().
|
inline |
Definition at line 98 of file Array.hxx.
Referenced by CLAM::Add(), CLAM::CircularBuffer< TData >::Add(), CLAM::AssertProperSize(), CLAM::IntervalAmplitudeAverages::Clear(), CLAM::Complex2LogMagPhase(), CLAM::Complex2MagPhase(), CLAM::LPC_AutoCorrelation::ComputeAutocorrelation(), CLAM::Normalization::ComputeScaleFactorFromAvgEnergy(), CLAM::Normalization::ComputeScaleFactorFromDominantEnergy(), CLAM::Normalization::ComputeScaleFactorFromMaxEnergy(), CLAM::MultiChannelAudioFileReader::ConcreteConfigure(), CLAM::Dispatcher::ConcreteConfigure(), CLAM::IntervalAmplitudeAverages::Configured(), CLAM::ConvertToBPF(), CLAM::MultiChannelAudioFileWriter::Do(), CLAM::ZeroPadder::Do(), CLAM::LPC_AutoCorrelation::Do(), CLAM::CircularShift::Do(), CLAM::SynthSineSpectrum::Do(), CLAM::FundFreqDetect::Do(), CLAM::CepstralTransform::Do(), CLAM::MelFilterBank::Do(), CLAM::WindowGenerator::Do(), CLAM::EnvelopeGenerator::Do(), CLAM::FillBuffer(), CLAM::MIDI2Melody::FindNote(), CLAM::PhaseManagement::GenerateRandomPhases(), CLAM::StatsTmpl< false, FrameDescriptors, FrameDescriptors >::GetCenterOfGravities(), CLAM::StatsTmpl< false, FrameDescriptors, FrameDescriptors >::GetCentralMoments(), CLAM::SpectralPeakArray::GetFirstNonValidIndexPosition(), CLAM::StatsTmpl< false, FrameDescriptors, FrameDescriptors >::GetMoments(), CLAM::CleanTracks::GetnCleanedTracks(), CLAM::SpectralPeakArray::GetnIndexedPeaks(), CLAM::SpectralPeakArray::GetPositionFromIndex(), CLAM::SMSTransformationChain::InitAllFrameIndex(), CLAM::SMSTransformationChain::InitSegmentArray(), CLAM::Linear2LogMagnitude(), CLAM::Segmentation::LoadFrom(), CLAM::Log2LinearMagnitude(), CLAM::Multiply(), CLAM::PoweredSum< o, abs, T >::operator()(), CLAM::LogSumTmpl< FrameDescriptors >::operator()(), CLAM::InnerProductTmpl< T >::operator()(), CLAM::WeightedPoweredSum< o, abs, T >::operator()(), CLAM::CrossWeightedPoweredSum< o, abs, T >::operator()(), CLAM::Moment< 1, abs, FrameDescriptors, FrameDescriptors >::operator()(), CLAM::CenterOfGravity< 1, abs, T, U >::operator()(), CLAM::GeometricMeanTmpl< FrameDescriptors, FrameDescriptors >::operator()(), CLAM::BiasedPoweredSum< o, abs, T, U >::operator()(), CLAM::CentralMoment< 4, abs, TData, TData >::operator()(), CLAM::ComplexMinElement< abs, FrameDescriptors >::operator()(), CLAM::ComplexMaxElement< abs, FrameDescriptors >::operator()(), CLAM::Array< TGuide >::operator+=(), CLAM::Array< TGuide >::operator=(), CLAM::operator==(), CLAM::Polar2MagPhase(), CLAM::CircularBuffer< TData >::Read(), CLAM::IntervalAmplitudeAverages::Reconfigure(), CLAM::StatsTmpl< false, FrameDescriptors, FrameDescriptors >::Reset(), CLAM::ValueToRatioMapping::Set(), CLAM::NoteToFreqMapping::Set(), CLAM::LinearMapping::Set(), CLAM::BPFTmpl< TData, TData >::Size(), CLAM::LPC_AutoCorrelation::SolveSystemByLevinsonDurbin(), CLAM::LPModel::ToSpectrum(), CLAM::CircularBuffer< TData >::Write(), CLAM::SMSTransformationChain::~SMSTransformationChain(), and CLAM::StatsTmpl< false, FrameDescriptors, FrameDescriptors >::~StatsTmpl().
|
inline |
|
inlinevirtual |
Stores component's subitems on the given Storage.
storage | The given storage where the subitem will be stored |
Implements CLAM::Component.
Definition at line 281 of file Array.hxx.
Referenced by CLAM::Segmentation::StoreOn().
|
static |
Definition at line 295 of file Array.hxx.
Referenced by CLAM::Array< TGuide >::DeleteElem().
|
static |
Definition at line 293 of file Array.hxx.
Referenced by CLAM::Array< TGuide >::operator[](), and CLAM::Array< TGuide >::SetElem().
|
static |
Definition at line 294 of file Array.hxx.
Referenced by CLAM::Array< TGuide >::InsertElem().
|
static |
Definition at line 292 of file Array.hxx.
Referenced by CLAM::Array< TGuide >::SetSize().