IPtr - Smart pointer template class.
More...
#include <smartpointer.h>
template<class I>
class Steinberg::IPtr< I >
IPtr - Smart pointer template class.
- can be used as an I* pointer
- handles refCount of the interface
- Usage example:
if (path)
path->ascend ();
IPtr(I *ptr, bool addRef=true)
Definition smartpointer.h:126
◆ IPtr() [1/5]
template<class I>
IPtr |
( |
I * | ptr, |
|
|
bool | addRef = true ) |
|
inline |
◆ IPtr() [2/5]
◆ IPtr() [3/5]
template<class I>
template<class T>
◆ IPtr() [4/5]
◆ ~IPtr()
◆ IPtr() [5/5]
template<class I>
template<class I>
◆ operator=() [1/4]
◆ operator=() [2/4]
template<class I>
IPtr & operator= |
( |
const IPtr< I > & | other | ) |
|
|
inline |
◆ operator=() [3/4]
template<class I>
template<class T>
IPtr & operator= |
( |
const IPtr< T > & | other | ) |
|
|
inline |
◆ operator I*()
◆ operator->()
◆ get()
◆ reset()
template<class I>
void reset |
( |
I * | obj = nullptr | ) |
|
|
inline |
◆ take()
◆ adopt()
template<class I>
template<typename T>
static IPtr< T > adopt |
( |
T * | obj | ) |
|
|
inlinestatic |
◆ operator=() [4/4]
template<class I>
template<class I>
IPtr< I > & operator= |
( |
const IPtr< I > & | _ptr | ) |
|
|
inline |
◆ ptr