Interface Technology Basics VST 3.6.11 SDK for developing VST Plug-in

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Public Member Functions | List of all members
FUnknownPtr< I > Class Template Reference

FUnknownPtr - automatic interface conversion and smart pointer in one. More...

`#include <funknown.h>`

Inheritance diagram for FUnknownPtr< I >:

## Public Member Functions
| FUnknownPtr (FUnknown *unknown)
| FUnknownPtr (const FUnknownPtr &p)
| FUnknownPtr ()
FUnknownPtr & | operator= (const FUnknownPtr &p)
I * | operator= (FUnknown *unknown)
I * | getInterface ()
Public Member Functions inherited from IPtr< I >
| IPtr (I *ptr, bool addRef=true)
| IPtr (const IPtr &)
| IPtr (const IPtr< I > &other)
| IPtr ()
| ~IPtr ()
I * | operator= (I *ptr)
IPtr & | operator= (const IPtr &other)
IPtr & | operator= (const IPtr< I > &other)
| operator I * () const
I * | operator-> () const
I * | get () const

## Additional Inherited Members
Protected Attributes inherited from IPtr< I >
I * | ptr

## Detailed Description

### template<class I>
class Steinberg::FUnknownPtr< I >

FUnknownPtr - automatic interface conversion and smart pointer in one.

This template class can be used for interface conversion like this:

IPtr<IPath> path = owned (FHostCreate (IPath, hostClasses));
FUnknownPtr<IPath2> path2 (path); // does a query interface for IPath2
if (path2)
...

## Constructor & Destructor Documentation

FUnknownPtr | ( | FUnknown * | unknown | ) |
| inline

FUnknownPtr | ( | const FUnknownPtr< I > & | p | ) |
| inline

FUnknownPtr | ( |  | ) |
| inline

## Member Function Documentation

FUnknownPtr& operator= | ( | const FUnknownPtr< I > & | p | ) |
| inline

I * operator= | ( | FUnknown * | unknown | ) |
| inline

I* getInterface | ( |  | ) |
| inline

Empty

Copyright ©2018 Steinberg Media Technologies GmbH. All Rights Reserved. This documentation is under this license.