JUCE-7.0.12-0-g4f43011b96 JUCE-7.0.12-0-g4f43011b96
JUCE — C++ application framework with suport for VST, VST3, LV2 audio plug-ins

« « « Anklang Documentation
Loading...
Searching...
No Matches
Classes | Functions
smartpointer.h File Reference
#include "pluginterfaces/base/fplatform.h"

Go to the source code of this file.

Classes

class  Steinberg::IPtr< I >
 IPtr - Smart pointer template class. More...
 
class  Steinberg::OPtr< I >
 OPtr - "owning" smart pointer used for newly created FObjects. More...
 

Functions

template<class I >
IPtr< I > Steinberg::owned (I *p)
 Assigning newly created object to an IPtr.
 
template<class I >
IPtr< I > Steinberg::shared (I *p)
 Assigning shared object to an IPtr.
 

Function Documentation

◆ owned()

template<class I >
IPtr< I > Steinberg::owned ( I *  p)

Assigning newly created object to an IPtr.

Example:

IPtr<IPath> path = owned (FHostCreate (IPath, hostClasses));

which is a slightly shorter form of writing:

IPtr<IPath> path = OPtr<IPath> (FHostCreate (IPath, hostClasses));

Definition at line 241 of file smartpointer.h.

◆ shared()

template<class I >
IPtr< I > Steinberg::shared ( I *  p)

Assigning shared object to an IPtr.

Example:

IPtr<IPath> path = shared (iface.getXY ());

Definition at line 253 of file smartpointer.h.