VSTGUI: OwningPointer< I > Class Template Reference

VSTGUI 4.10 Graphical User Interface Framework not only for VST plugins

Public Member Functions | List of all members
OwningPointer< I > Class Template Reference

An owning pointer. More...

`#include <vstguibase.h>`

Inheritance diagram for OwningPointer< I >:

## Public Member Functions
| OwningPointer (I *p)
| OwningPointer (const SharedPointer< I > &p)
| OwningPointer (const OwningPointer< I > &p)
| OwningPointer ()
I * | operator= (I *_ptr)
Public Member Functions inherited from SharedPointer< I >
| SharedPointer (I *ptr, bool remember=true) noexcept
| SharedPointer (const SharedPointer &) noexcept
| SharedPointer () noexcept
| ~SharedPointer () noexcept
I * | operator= (I *ptr) noexcept
SharedPointer< I > & | operator= (const SharedPointer< I > &) noexcept
| operator I* () const noexcept
I * | operator-> () const noexcept
I * | get () const noexcept
template<class T >
T * | cast () const
| SharedPointer (SharedPointer< I > &&mp) noexcept
SharedPointer< I > & | operator= (SharedPointer< I > &&mp) noexcept
template<typename T >
| SharedPointer (const SharedPointer< T > &op) noexcept
template<typename T >
SharedPointer & | operator= (const SharedPointer< T > &op) noexcept
template<typename T >
| SharedPointer (SharedPointer< T > &&op) noexcept
template<typename T >
SharedPointer & | operator= (SharedPointer< T > &&op) noexcept
template<class I >
| SharedPointer (const SharedPointer< I > &other) noexcept

## Additional Inherited Members
Protected Attributes inherited from SharedPointer< I >
I * | ptr {nullptr}

## Detailed Description

template<class I>
class VSTGUI::OwningPointer< I >

An owning pointer.

Deprecated:

This class is now deprecated. Please change your code from

OwningPointer<MyClass> obj = new MyClass ()

to

SharedPointer<MyClass> obj = makeOwned<MyClass> ();

## Constructor & Destructor Documentation

## ◆ OwningPointer() [1/4]

OwningPointer | ( | I * | p | ) |
| inline

## ◆ OwningPointer() [2/4]

OwningPointer | ( | const SharedPointer< I > & | p | ) |
| inline

## ◆ OwningPointer() [3/4]

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

## ◆ OwningPointer() [4/4]

OwningPointer | ( |  | ) |
| inline

## Member Function Documentation

## ◆ operator=()

I * operator= | ( | I * | _ptr | ) |
| inline

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

- vstguibase.h