LMMS
Loading...
Searching...
No Matches
juce::ScopedPointer< ObjectType > Class Template Reference

#include <juce_ScopedPointer.h>

Public Member Functions

 ScopedPointer ()
 ScopedPointer (decltype(nullptr)) noexcept
 ScopedPointer (ObjectType *objectToTakePossessionOf) noexcept
 ScopedPointer (ScopedPointer &objectToTransferFrom) noexcept
 ~ScopedPointer ()
ScopedPointeroperator= (ScopedPointer &objectToTransferFrom)
ScopedPointeroperator= (ObjectType *newObjectToTakePossessionOf)
 ScopedPointer (ScopedPointer &&other) noexcept
ScopedPointeroperator= (ScopedPointer &&other) noexcept
 operator ObjectType * () const noexcept
ObjectType * get () const noexcept
ObjectType & operator* () const noexcept
ObjectType * operator-> () const noexcept
void reset ()
void reset (ObjectType *newObject)
void reset (ScopedPointer &newObject)
ObjectType * release () noexcept
void swapWith (ScopedPointer< ObjectType > &other) noexcept
ObjectType * createCopy () const

Private Member Functions

const ScopedPointergetAddress () const noexcept
 ScopedPointer (const ScopedPointer &)=delete
ScopedPointeroperator= (const ScopedPointer &)=delete

Private Attributes

ObjectType * object = nullptr

Detailed Description

template<class ObjectType>
class juce::ScopedPointer< ObjectType >

This class is deprecated. You should use std::unique_ptr instead.

Constructor & Destructor Documentation

◆ ScopedPointer() [1/6]

template<class ObjectType>
juce::ScopedPointer< ObjectType >::ScopedPointer ( )
inline

◆ ScopedPointer() [2/6]

template<class ObjectType>
juce::ScopedPointer< ObjectType >::ScopedPointer ( decltype(nullptr) )
inlinenoexcept

◆ ScopedPointer() [3/6]

template<class ObjectType>
juce::ScopedPointer< ObjectType >::ScopedPointer ( ObjectType * objectToTakePossessionOf)
inlinenoexcept

◆ ScopedPointer() [4/6]

template<class ObjectType>
juce::ScopedPointer< ObjectType >::ScopedPointer ( ScopedPointer< ObjectType > & objectToTransferFrom)
inlinenoexcept

◆ ~ScopedPointer()

template<class ObjectType>
juce::ScopedPointer< ObjectType >::~ScopedPointer ( )
inline

◆ ScopedPointer() [5/6]

template<class ObjectType>
juce::ScopedPointer< ObjectType >::ScopedPointer ( ScopedPointer< ObjectType > && other)
inlinenoexcept

◆ ScopedPointer() [6/6]

template<class ObjectType>
juce::ScopedPointer< ObjectType >::ScopedPointer ( const ScopedPointer< ObjectType > & )
privatedelete

Member Function Documentation

◆ createCopy()

template<class ObjectType>
ObjectType * juce::ScopedPointer< ObjectType >::createCopy ( ) const
inline

◆ get()

template<class ObjectType>
ObjectType * juce::ScopedPointer< ObjectType >::get ( ) const
inlinenoexcept

◆ getAddress()

template<class ObjectType>
const ScopedPointer * juce::ScopedPointer< ObjectType >::getAddress ( ) const
inlineprivatenoexcept

◆ operator ObjectType *()

template<class ObjectType>
juce::ScopedPointer< ObjectType >::operator ObjectType * ( ) const
inlinenoexcept

◆ operator*()

template<class ObjectType>
ObjectType & juce::ScopedPointer< ObjectType >::operator* ( ) const
inlinenoexcept

◆ operator->()

template<class ObjectType>
ObjectType * juce::ScopedPointer< ObjectType >::operator-> ( ) const
inlinenoexcept

◆ operator=() [1/4]

template<class ObjectType>
ScopedPointer & juce::ScopedPointer< ObjectType >::operator= ( const ScopedPointer< ObjectType > & )
privatedelete

◆ operator=() [2/4]

template<class ObjectType>
ScopedPointer & juce::ScopedPointer< ObjectType >::operator= ( ObjectType * newObjectToTakePossessionOf)
inline

◆ operator=() [3/4]

template<class ObjectType>
ScopedPointer & juce::ScopedPointer< ObjectType >::operator= ( ScopedPointer< ObjectType > && other)
inlinenoexcept

◆ operator=() [4/4]

template<class ObjectType>
ScopedPointer & juce::ScopedPointer< ObjectType >::operator= ( ScopedPointer< ObjectType > & objectToTransferFrom)
inline

◆ release()

template<class ObjectType>
ObjectType * juce::ScopedPointer< ObjectType >::release ( )
inlinenoexcept

◆ reset() [1/3]

template<class ObjectType>
void juce::ScopedPointer< ObjectType >::reset ( )
inline

◆ reset() [2/3]

template<class ObjectType>
void juce::ScopedPointer< ObjectType >::reset ( ObjectType * newObject)
inline

◆ reset() [3/3]

template<class ObjectType>
void juce::ScopedPointer< ObjectType >::reset ( ScopedPointer< ObjectType > & newObject)
inline

◆ swapWith()

template<class ObjectType>
void juce::ScopedPointer< ObjectType >::swapWith ( ScopedPointer< ObjectType > & other)
inlinenoexcept

Member Data Documentation

◆ object

template<class ObjectType>
ObjectType* juce::ScopedPointer< ObjectType >::object = nullptr
private

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