LMMS
Loading...
Searching...
No Matches
Steinberg::FReleaser Struct Reference

#include <funknown.h>

Public Member Functions

 FReleaser (FUnknown *u)
 ~FReleaser ()

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
}
static Audio_Scope * scope
Definition player.cpp:26
FReleaser(FUnknown *u)
Definition funknown.h:540

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
}
Definition smartpointer.h:210

Constructor & Destructor Documentation

◆ FReleaser()

Steinberg::FReleaser::FReleaser ( FUnknown * u)
inline

◆ ~FReleaser()

Steinberg::FReleaser::~FReleaser ( )
inline

Member Data Documentation

◆ u

FUnknown* Steinberg::FReleaser::u

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