![]() |
Audacity 3.2.0
|
Namespaces | |
namespace | detail |
Classes | |
struct | Deleter |
Deleter for an array of elements and optional contiguous header structure. More... | |
struct | Ptr |
Smart pointer type that deallocates with Deleter. More... | |
struct | Traits |
Primary template used in Deleter that can be specialized. More... | |
struct | Traits< AudioBufferList > |
struct | Traits< AudioUnitCocoaViewInfo > |
Functions | |
template<typename Type , template< typename > typename BaseDeleter> | |
size_t | Count (const Ptr< Type, BaseDeleter > &p) |
Find out how many elements were allocated with a Ptr. More... | |
template<typename Type , template< typename > typename BaseDeleter> | |
auto | begin (const Ptr< Type, BaseDeleter > &p) |
Enables range-for. More... | |
template<typename Type , template< typename > typename BaseDeleter> | |
auto | end (const Ptr< Type, BaseDeleter > &p) |
Enables range-for. More... | |
template<typename Type > | |
auto | AllocateBytes (size_t enlarged) |
Allocate a Ptr<Type> holding at least enlarged bytes. More... | |
template<typename Type > | |
auto | AllocateCount (size_t count) |
Allocate a Ptr<Type> holding count elements. More... | |
auto PackedArray::AllocateBytes | ( | size_t | enlarged | ) |
Allocate a Ptr<Type> holding at least enlarged
bytes.
Usage: AllocateBytes<Type>(bytes)(constructor arguments for Type) Meant to resemble placement-new syntax with separation of allocator and constructor arguments
Definition at line 192 of file PackedArray.h.
References PackedArrayArg, and safenew.
auto PackedArray::AllocateCount | ( | size_t | count | ) |
Allocate a Ptr<Type> holding count
elements.
Usage: AllocateCount<Type>(count)(constructor arguments for Type) Meant to resemble placement-new syntax with separation of allocator and constructor arguments
If Traits<Type> defines a nonempty header, the result always holds at least one element
Definition at line 212 of file PackedArray.h.
|
inline |
Enables range-for.
Definition at line 150 of file PackedArray.h.
References begin().
Referenced by VampEffect::AddFeatures(), TrackList::ApplyPendingTracks(), begin(), Composite::Builder< Base, Derived, BaseArgs >::Builder(), MacroCommandsCatalog::ByCommandId(), MacroCommandsCatalog::ByFriendlyName(), TrackList::cbegin(), SelectionState::ChangeSelectionOnShiftClick(), TrackList::ClearPendingTracks(), TestWaveClipMaker::ClipFilledWith(), Envelope::CollapseRegion(), anonymous_namespace{CompositeTest.cpp}::compareSequences(), OverlayPanel::Compress(), WaveTrack::CopyClipEnvelopes(), Envelope::CopyRange(), anonymous_namespace{LabelMenus.cpp}::DoAddLabel(), ShuttleGuiBase::DoInsertListColumns(), TimeShiftHandle::DoSlideVertical(), anonymous_namespace{SpectrumView.cpp}::DrawClipSpectrum(), anonymous_namespace{WaveformView.cpp}::DrawWaveformBackground(), WaveTrack::DuplicateWithOtherTempo(), end(), Envelope::EqualRange(), EstimateRemovedBlocks(), CommandManager::ExcludedList(), anonymous_namespace{ProjectSerializer.cpp}::FastStringConvert(), TrackList::FindById(), CellularPanel::FindCell(), anonymous_namespace{ProjectFileManager.cpp}::FindHelpUrl(), SubViewAdjuster::FindIndex(), anonymous_namespace{Scrubbing.cpp}::FindMenuItem(), BasicMenu::anonymous_namespace{BasicMenu.cpp}::FindPathName(), ToolBarConfiguration::FindPeers(), SubViewAdjuster::FindPermutation(), RealtimeEffectList::FindState(), Ruler::FindZero(), for(), ToolManager::ForEach(), EffectSilence::GenerateTrack(), anonymous_namespace{WaveChannelViewConstants.cpp}::Registry::Get(), TrackList::getBegin(), CommonChannelView::GetMinimizedHeight(), WaveChannelView::GetSubViews(), CellularPanel::HandleMotion(), OpusImportFileHandle::Import(), WavPackImportFileHandle::Import(), ImportRaw(), EffectAmplify::Init(), VampEffect::Init(), wxArrayStringEx::insert(), anonymous_namespace{Registry.cpp}::CollectedItems::InsertNewItemUsingHint(), SyncLock::IsSyncLockSelected(), ScreenshotCommand::kCaptureWhatStrings(), ThemeBase::LoadOneThemeComponents(), anonymous_namespace{ParsedNumericConverterFormatter.cpp}::MakeGroup(), anonymous_namespace{WaveChannelView.cpp}::NextClipLooped(), SqliteSampleBlockFactory::OnBeginPurge(), PackedArray::Ptr< Type, BaseDeleter >::operator[](), SpectralDataManager::Worker::OvertonesProcessor(), Envelope::PasteEnvelope(), TimeTrack::PasteInto(), EffectAutoDuck::Process(), EffectChangeSpeed::Process(), EffectEqualization::Process(), Generator::Process(), EffectPaulstretch::Process(), EffectRepeat::Process(), EffectSBSMS::Process(), EffectNoiseReduction::Worker::Process(), NyquistEffect::ProcessOne(), PerTrackEffect::ProcessPass(), SpectralDataManager::ProcessTracks(), NyquistEffect::NyxContext::PutCallback(), audacity::network_manager::IResponse::readAll(), anonymous_namespace{ProjectSerializer.cpp}::ReadBigEndian(), audacity::network_manager::CurlResponse::readData(), AllProjects::Remove(), UndoManager::RemoveStates(), BasicMenu::anonymous_namespace{BasicMenu.cpp}::ReplayPopup(), Importer::SelectDefaultOpenType(), WaveTrackUtils::SelectedClip(), SelectionState::SelectRangeOfTracks(), TrackFocus::SetFocus(), LabelTrack::SortLabels(), TEST_CASE(), Journal::WindowPaths::anonymous_namespace{JournalWindowPaths.cpp}::UniqueWindowAmongPeers(), ExportAudioDialog::UpdateLabelExportSettings(), TrackPanel::UpdateVRuler(), Journal::anonymous_namespace{Journal.cpp}::VersionCheck(), CellularPanel::Visit(), MenuRegistry::Visitor< MenuTraits >::Visitor(), UndoManager::VisitStates(), and anonymous_namespace{ProjectSerializer.cpp}::WriteBigEndian().
|
inline |
Find out how many elements were allocated with a Ptr.
Definition at line 143 of file PackedArray.h.
Referenced by end(), AudioUnitEffectBase::InitializePlugin(), AudioUnitInstance::ProcessBlock(), and AudioUnitInstance::Render().
|
inline |
Enables range-for.
Definition at line 159 of file PackedArray.h.
References begin(), and Count().
Referenced by CommandDirectory::AddCommand(), PluginManager::Iterator::Advance(), AudioGraph::Buffers::Advance(), EffectNormalize::AnalyseTrackData(), EffectTruncSilence::Analyze(), SelectTimeCommand::Apply(), EffectAutoDuck::ApplyDuckFade(), RingBuffer::AvailForGet(), Composite::Builder< Base, Derived, BaseArgs >::Builder(), MacroCommandsCatalog::ByCommandId(), MacroCommandsCatalog::ByFriendlyName(), AttachedVirtualFunction< Tag, Return, This, Arguments >::Call(), TrackList::cend(), ChannelGroupInterval::ChannelGroupInterval(), LV2FeaturesListBase::CheckFeatures(), WaveClip::CheckInvariants(), LV2InstanceFeaturesList::CheckOptions(), RingBuffer::Clear(), AudioGraph::Buffers::ClearBuffer(), TrackList::ClearPendingTracks(), SubViewAdjustHandle::Click(), TestWaveClipMaker::ClipFilledWith(), Envelope::CollapseRegion(), anonymous_namespace{CompositeTest.cpp}::compareSequences(), OverlayPanel::Compress(), WaveTrack::CopyClipEnvelopes(), Envelope::CopyRange(), audacity::network_manager::anonymous_namespace{CurlResponse.cpp}::DataStreamRead(), AudioGraph::Buffers::Discard(), RingBuffer::Discard(), WaveTrack::Disjoin(), anonymous_namespace{SelectMenus.cpp}::DoBoundaryMove(), NoteTrack::DoGetInterval(), anonymous_namespace{TrackMenus.cpp}::DoMixAndRender(), TimeShiftHandle::DoSlideVertical(), SampleHandle::Drag(), anonymous_namespace{TrackPanel.cpp}::VRulersAndChannels::Draw(), anonymous_namespace{SpectrumView.cpp}::DrawClipSpectrum(), anonymous_namespace{WaveformView.cpp}::DrawWaveformBackground(), Envelope::EqualRange(), EstimateRemovedBlocks(), CommandManager::ExcludedList(), WaveClip::ExpandCutLine(), WaveTrack::ExpandOneCutLine(), anonymous_namespace{ProjectSerializer.cpp}::FastStringConvert(), RingBuffer::Filled(), anonymous_namespace{Registry.cpp}::CollectedItems::Find(), ToolBarConfiguration::Find(), ChoiceSetting::Find(), TrackList::FindById(), Journal::WindowPaths::FindByPath(), CellularPanel::FindCell(), anonymous_namespace{WaveTrack.cpp}::FindClip(), anonymous_namespace{ProjectFileManager.cpp}::FindHelpUrl(), SubViewAdjuster::FindIndex(), anonymous_namespace{Scrubbing.cpp}::FindMenuItem(), BasicMenu::anonymous_namespace{BasicMenu.cpp}::FindPathName(), ToolBarConfiguration::FindPeers(), SubViewAdjuster::FindPermutation(), RealtimeEffectList::FindState(), anonymous_namespace{WaveformView.cpp}::FindWavePortions(), Ruler::FindZero(), for(), ToolManager::ForEach(), RingBuffer::Free(), anonymous_namespace{WaveChannelViewConstants.cpp}::Registry::Get(), MeterUpdateQueue::Get(), RingBuffer::Get(), SqliteSampleBlockFactory::GetActiveBlockIDs(), FrequencyPlotDialog::GetAudio(), Effect::GetBounds(), TrackList::getEnd(), anonymous_namespace{ImportMP3_MPG123.cpp}::GetId3v2Genre(), Languages::GetLanguages(), GetNextWindowPlacement(), TranscriptionToolBar::GetSamples(), WaveChannelView::GetSubViews(), FFmpegAPIResolver::GetSuportedAVFormatVersions(), ToolManager::GetToolBar(), RingBuffer::GetUnflushed(), Viewport::GetZoomOfToFit(), CellularPanel::HandleMotion(), Identifier::Identifier(), Importer::Import(), EffectAmplify::Init(), anonymous_namespace{Registry.cpp}::CollectedItems::InsertNewItemUsingHint(), WaveTrack::InsertSilence(), EffectTruncSilence::Intersect(), TrackList::isNull(), WaveTrack::JoinOne(), ScreenshotCommand::kCaptureWhatStrings(), ThemeBase::LoadOneThemeComponents(), CommandDirectory::LookUp(), anonymous_namespace{ParsedNumericConverterFormatter.cpp}::MakeGroup(), VSTWrapper::MakeMessageFS(), ProjectSelectionManager::ModifySelection(), SelectionBar::ModifySelection(), anonymous_namespace{WaveChannelView.cpp}::NextClipLooped(), NoteTrackTCPLines::NoteTrackTCPLines(), VoiceKey::OffBackward(), Ruler::OfflimitsPixels(), VoiceKey::OnBackward(), SqliteSampleBlockFactory::OnBeginPurge(), NavigationActions::Handler::OnNextWindow(), NavigationActions::Handler::OnPrevWindow(), ProjectAudioManager::OnRecord(), FFTDeleter::operator()(), anonymous_namespace{MIDIPlay.h}::Iterator::OutputEvent(), SpectralDataManager::Worker::OvertonesProcessor(), AudioUnitWrapper::ParameterInfo::ParseKey(), audacity::ParseRFC822Date(), Envelope::PasteEnvelope(), audacity::network_manager::CurlResponseFactory::performRequest(), TrackList::Permute(), PrefsDialog::PrefsDialog(), RealtimeEffectManager::Process(), EffectAutoDuck::Process(), EffectChangeSpeed::Process(), EffectClickRemoval::Process(), EffectEqualization::Process(), EffectFindClipping::Process(), EffectNoiseRemoval::Process(), NyquistEffect::Process(), EffectRepeat::Process(), EffectReverse::Process(), EffectSBSMS::Process(), EffectStereoToMono::Process(), EffectNoiseReduction::Worker::Process(), Mixer::Process(), EffectPaulstretch::ProcessOne(), EffectChangeSpeed::ProcessOne(), EffectStereoToMono::ProcessOne(), EffectTwoPassSimpleMono::ProcessOne(), EffectNormalize::ProcessOne(), EffectLoudness::ProcessOne(), EffectTwoPassSimpleMono::ProcessPass(), RingBuffer::Put(), MeterUpdateQueue::Put(), audacity::network_manager::IResponse::readAll(), audacity::network_manager::CurlResponse::readData(), ThemeBase::ReadImageCache(), MultiFormatReader::ReadSamples(), PrefsDialog::RecordExpansionState(), Registry::detail::RegisterItem(), AllProjects::Remove(), RealtimeEffectList::RemoveState(), UndoManager::RemoveStates(), BasicMenu::anonymous_namespace{BasicMenu.cpp}::ReplayPopup(), WaveTrack::ReverseOne(), WaveTrack::RightmostOrNewClip(), anonymous_namespace{SampleHandle.cpp}::SampleResolutionTest(), anonymous_namespace{SelectMenus.cpp}::SeekWhenAudioInactive(), WaveTrackUtils::SelectedClip(), PlayRegion::SetAllTimes(), ChangeClipSpeedDialog::SetClipSpeedFromDialog(), PlayRegion::SetEnd(), LabelTrackView::SetTextSelection(), PlayRegion::SetTimes(), SelectionBar::SetTimes(), WaveTrack::Silence(), AdornedRulerPanel::StartQPPlay(), SelectHandle::StartSnappingFreqSelection(), TranslatableString::Strip(), anonymous_namespace{CellularPanel.cpp}::Subdivide(), Track::SubstituteOriginalTrack(), Track::SubstitutePendingChangedTrack(), TEST_CASE(), XMLAttributeValueView::TryGet(), XMLAttributeValueView::TryGetInteger(), CommandManager::TryToMakeActionAllowed(), Journal::WindowPaths::anonymous_namespace{JournalWindowPaths.cpp}::UniqueWindowAmongPeers(), RingBuffer::Unput(), internal::x11::RunLoop::unregisterEventHandler(), UnregisterProviderFactory(), internal::x11::RunLoop::unregisterTimer(), anonymous_namespace{ScrubState.cpp}::ScrubQueue::Update(), LogarithmicUpdater::Update(), TrackPanel::UpdateTrackVRuler(), audacity::UrlDecode(), Journal::anonymous_namespace{Journal.cpp}::VersionCheck(), CellularPanel::Visit(), UndoManager::VisitStates(), WaveTrackTCPLines::WaveTrackTCPLines(), NoteTrackDisplayData::ZoomTo(), and SelectionStateChanger::~SelectionStateChanger().