![]() |
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 32 of file MemoryX.h.
References ArrayOf< X >::reinit().
|
inline |
Definition at line 57 of file MemoryX.h.
References safenew.
Referenced by ExportMP3::AddTags(), AudioIO::AllocateBuffers(), EffectLoudness::AllocBuffers(), ArrayOf< X >::ArrayOf(), TaskProfile::Begin(), VSTEditor::BuildPlain(), SqliteSampleBlock::CalcSummary(), Matrix::CopyFrom(), anonymous_namespace{WaveformView.cpp}::DrawIndividualSamples(), anonymous_namespace{WaveformView.cpp}::DrawMinMaxRMS(), EBUR128::EBUR128(), EffectNoiseRemoval::EffectNoiseRemoval(), WaveClipWaveformCache::GetWaveDisplay(), WavPackImportFileHandle::Import(), EffectNoiseRemoval::Initialize(), LadspaEffectBase::InitializePlugin(), EffectCompressor::InitPass1(), EffectCompressor::NewTrackPass1(), VampEffect::PopulateOrExchange(), LadspaEditor::PopulateUI(), EffectSBSMS::Process(), EffectEcho::Instance::ProcessInitialize(), EffectFindClipping::ProcessOne(), and SqliteSampleBlock::SetSamples().