Audacity 3.2.0
|
This simplifies arrays of arrays, each array separately allocated with NEW[] But it might be better to use std::Array<ArrayOf<X>, N> for some small constant N Or use just one array when sub-arrays have a common size and are not large. More...
#include <MemoryX.h>
Public Member Functions | |
ArrayOf () | |
template<typename Integral > | |
ArrayOf (Integral count, bool initialize=false) | |
ArrayOf (const ArrayOf &)=delete | |
ArrayOf (ArrayOf &&that) | |
ArrayOf & | operator= (ArrayOf &&that) |
ArrayOf & | operator= (std::unique_ptr< X[]> &&that) |
template<typename Integral > | |
void | reinit (Integral count, bool initialize=false) |
This simplifies arrays of arrays, each array separately allocated with NEW[] But it might be better to use std::Array<ArrayOf<X>, N> for some small constant N Or use just one array when sub-arrays have a common size and are not large.
ArraysOf<X>
|
inlineexplicit |
Definition at line 34 of file MemoryX.h.
References ArrayOf< X >::reinit().
|
inline |
Definition at line 59 of file MemoryX.h.
References safenew.
Referenced by MP2ExportProcessor::AddTags(), MP3ExportProcessor::AddTags(), LoudnessBase::AllocBuffers(), ArrayOf< X >::ArrayOf(), TaskProfile::Begin(), VSTEditor::BuildPlain(), SqliteSampleBlock::CalcSummary(), Matrix::CopyFrom(), anonymous_namespace{WaveformView.cpp}::DrawIndividualSamples(), EBUR128::EBUR128(), WavPackImportFileHandle::Import(), LadspaEffectBase::InitializePlugin(), LegacyCompressorBase::InitPass1(), LegacyCompressorBase::NewTrackPass1(), VampEffect::PopulateOrExchange(), LadspaEditor::PopulateUI(), SBSMSBase::Process(), EchoBase::Instance::ProcessInitialize(), FindClippingBase::ProcessOne(), SqliteSampleBlock::SetSamples(), and MixerTrackCluster::UpdateMeter().