LMMS
Loading...
Searching...
No Matches
juce::DeletedAtShutdown Class Reference

#include <juce_DeletedAtShutdown.h>

Inheritance diagram for juce::DeletedAtShutdown:
juce::RenderingHelpers::GlyphCache< CachedGlyphEdgeTable< SoftwareRendererSavedState >, SoftwareRendererSavedState > JuceCleanup juce::ContentSharer juce::Desktop juce::DragAndDropHelpers::ThreadPoolHolder juce::FTTypefaceList juce::HWNDComponentPeer::WindowClassHolder juce::ImageCache::Pimpl juce::JUCESplashScreen juce::MidiService juce::ModalComponentManager juce::PushNotifications juce::RenderingHelpers::GlyphCache< CachedGlyphType, RenderTargetType > juce::ScopedThreadDPIAwarenessSetter::NativeImpl::FunctionSingleton juce::SpVoiceWrapper juce::SplashScreen juce::Timer::TimerThread juce::TopLevelWindowManager juce::TypefaceCache juce::WebKitSymbols juce::WinRTWrapper juce::WindowsUIAWrapper juce::XWindowSystem

Static Public Member Functions

static void deleteAll ()

Protected Member Functions

 DeletedAtShutdown ()
virtual ~DeletedAtShutdown ()

Detailed Description

Classes derived from this will be automatically deleted when the application exits.

After JUCEApplicationBase::shutdown() has been called, any objects derived from DeletedAtShutdown which are still in existence will be deleted in the reverse order to that in which they were created.

So if you've got a singleton and don't want to have to explicitly delete it, just inherit from this and it'll be taken care of.

@tags{Events}

Constructor & Destructor Documentation

◆ DeletedAtShutdown()

juce::DeletedAtShutdown::DeletedAtShutdown ( )
protected

Creates a DeletedAtShutdown object.

◆ ~DeletedAtShutdown()

juce::DeletedAtShutdown::~DeletedAtShutdown ( )
protectedvirtual

Destructor.

It's ok to delete these objects explicitly - it's only the ones left dangling at the end that will be deleted automatically.

Member Function Documentation

◆ deleteAll()

void juce::DeletedAtShutdown::deleteAll ( )
static

Deletes all extant objects.

This shouldn't be used by applications, as it's called automatically in the shutdown code of the JUCEApplicationBase class.


The documentation for this class was generated from the following files: