Steinberg::FReleaser Struct Reference

#include <funknown.h>

List of all members.

Public Member Functions

 FReleaser (FUnknown *u)
 ~FReleaser ()

Public Attributes

FUnknownu


Detailed Description

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

Definition at line 367 of file funknown.h.


Constructor & Destructor Documentation

Steinberg::FReleaser::FReleaser ( FUnknown u  )  [inline]

Definition at line 369 of file funknown.h.

Steinberg::FReleaser::~FReleaser (  )  [inline]

Definition at line 370 of file funknown.h.


Member Data Documentation

FUnknown* Steinberg::FReleaser::u

Definition at line 372 of file funknown.h.


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

Copyright ©2008 Steinberg Media Technologies. All Rights Reserved.