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 | Static Public Member Functions | Protected Attributes | List of all members
Steinberg::IPtr< I > Class Template Reference

IPtr - Smart pointer template class. More...

#include "smartpointer.h"

Inheritance diagram for Steinberg::IPtr< I >:
Steinberg::FUnknownPtr< I > Steinberg::OPtr< I >

Public Member Functions

 IPtr (I *ptr, bool addRef=true)
 
 IPtr (const IPtr &)
 
template<class T >
 IPtr (const IPtr< T > &other)
 
I * operator= (I *ptr)
 
IPtroperator= (const IPtr &other)
 
template<class T >
IPtroperator= (const IPtr< T > &other)
 
 operator I* () const
 
I * operator-> () const
 
I * get () const
 
void reset (I *obj=nullptr)
 
I * take () SMTG_NOEXCEPT
 

Static Public Member Functions

template<typename T >
static IPtr< T > adopt (T *obj) SMTG_NOEXCEPT
 

Protected Attributes

I * ptr
 

Detailed Description

template<class I>
class Steinberg::IPtr< I >

IPtr - Smart pointer template class.

Definition at line 43 of file smartpointer.h.

Constructor & Destructor Documentation

◆ IPtr() [1/4]

template<class I >
Steinberg::IPtr< I >::IPtr ( I *  ptr,
bool  addRef = true 
)

Definition at line 126 of file smartpointer.h.

◆ IPtr() [2/4]

template<class I >
Steinberg::IPtr< I >::IPtr ( const IPtr< I > &  other)

Definition at line 134 of file smartpointer.h.

◆ IPtr() [3/4]

template<class I >
template<class T >
Steinberg::IPtr< I >::IPtr ( const IPtr< T > &  other)

Definition at line 51 of file smartpointer.h.

◆ IPtr() [4/4]

template<class I >
Steinberg::IPtr< I >::IPtr ( )

Definition at line 142 of file smartpointer.h.

◆ ~IPtr()

template<class I >
Steinberg::IPtr< I >::~IPtr ( )

Definition at line 148 of file smartpointer.h.

Member Function Documentation

◆ adopt()

template<class I >
template<typename T >
static IPtr< T > Steinberg::IPtr< I >::adopt ( T *  obj)
static

Definition at line 117 of file smartpointer.h.

◆ get()

template<class I >
I * Steinberg::IPtr< I >::get ( ) const

Definition at line 74 of file smartpointer.h.

◆ operator I*()

template<class I >
Steinberg::IPtr< I >::operator I* ( ) const

Definition at line 71 of file smartpointer.h.

◆ operator->()

template<class I >
I * Steinberg::IPtr< I >::operator-> ( ) const

Definition at line 72 of file smartpointer.h.

◆ operator=() [1/3]

template<class I >
IPtr< I > & Steinberg::IPtr< I >::operator= ( const IPtr< I > &  other)

Definition at line 174 of file smartpointer.h.

◆ operator=() [2/3]

template<class I >
template<class T >
IPtr & Steinberg::IPtr< I >::operator= ( const IPtr< T > &  other)

Definition at line 65 of file smartpointer.h.

◆ operator=() [3/3]

template<class I >
I * Steinberg::IPtr< I >::operator= ( I *  ptr)

Definition at line 159 of file smartpointer.h.

◆ reset()

template<class I >
void Steinberg::IPtr< I >::reset ( I *  obj = nullptr)

Definition at line 102 of file smartpointer.h.

◆ take()

template<class I >
I * Steinberg::IPtr< I >::take ( )

Definition at line 109 of file smartpointer.h.

Member Data Documentation

◆ ptr

template<class I >
I* Steinberg::IPtr< I >::ptr
protected

Definition at line 121 of file smartpointer.h.


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