JUCE v8.0.9
JUCE API
 
Loading...
Searching...
No Matches
juce::ARAFactoryWrapper Class Reference

Encapsulates an ARAFactory pointer and makes sure that it remains in a valid state for the lifetime of the ARAFactoryWrapper object. More...

#include <juce_ARACommon.h>

Collaboration diagram for juce::ARAFactoryWrapper:

Public Member Functions

 ARAFactoryWrapper ()=default
 
 ARAFactoryWrapper (std::shared_ptr< const ARA::ARAFactory > factoryIn)
 
const ARA::ARAFactory * get () const noexcept
 Returns the contained ARAFactory pointer, which can be a nullptr.
 

Private Attributes

std::shared_ptr< const ARA::ARAFactory > factory
 

Detailed Description

Encapsulates an ARAFactory pointer and makes sure that it remains in a valid state for the lifetime of the ARAFactoryWrapper object.

@tags{ARA}

Constructor & Destructor Documentation

◆ ARAFactoryWrapper() [1/2]

juce::ARAFactoryWrapper::ARAFactoryWrapper ( )
default

◆ ARAFactoryWrapper() [2/2]

juce::ARAFactoryWrapper::ARAFactoryWrapper ( std::shared_ptr< const ARA::ARAFactory >  factoryIn)
inlineexplicit

Used by the framework to encapsulate ARAFactory pointers loaded from plugins.

Member Function Documentation

◆ get()

const ARA::ARAFactory * juce::ARAFactoryWrapper::get ( ) const
inlinenoexcept

Returns the contained ARAFactory pointer, which can be a nullptr.

The validity of the returned pointer is only guaranteed for the lifetime of this wrapper.

References factory.

Member Data Documentation

◆ factory

std::shared_ptr<const ARA::ARAFactory> juce::ARAFactoryWrapper::factory
private

Referenced by get().


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