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
Public Member Functions | Public Attributes | List of all members
Steinberg::FReleaser Struct Reference

Release an interface using automatic object (obsolete). More...

#include "funknown.h"

Public Member Functions

 FReleaser (FUnknown *u)
 

Public Attributes

FUnknownu
 

Detailed Description

Release an interface using automatic object (obsolete).

This class is obsolete and is only kept for compatibility. The replacement for FReleaser is OPtr.

Usage example with FReleaser:

void someFunction ()
{
IPath* path = pathCreateMethod ();
FReleaser releaser (path);
.... do something with path...
.... path not used anymore, releaser will destroy it when leaving function scope
}
Release an interface using automatic object (obsolete).
Definition funknown.h:553

Usage example with OPtr:

void someFunction ()
{
OPtr<IPath> path = pathCreateMethod ();
.... do something with path...
.... path not used anymore, OPtr will destroy it when leaving function scope
}
OPtr - "owning" smart pointer used for newly created FObjects.

Definition at line 552 of file funknown.h.

Constructor & Destructor Documentation

◆ FReleaser()

Steinberg::FReleaser::FReleaser ( FUnknown u)

Definition at line 554 of file funknown.h.

◆ ~FReleaser()

Steinberg::FReleaser::~FReleaser ( )

Definition at line 555 of file funknown.h.

Member Data Documentation

◆ u

FUnknown* Steinberg::FReleaser::u

Definition at line 560 of file funknown.h.


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