JUCE  v6.1.6 (6.0.8-1114)
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
juce::WeakReference< ObjectType, ReferenceCountingType >::SharedPointer Class Reference

This class is used internally by the WeakReference class - don't use it directly in your code! More...

#include <juce_WeakReference.h>

Inheritance diagram for juce::WeakReference< ObjectType, ReferenceCountingType >::SharedPointer:
Collaboration diagram for juce::WeakReference< ObjectType, ReferenceCountingType >::SharedPointer:

Public Member Functions

 SharedPointer (ObjectType *obj) noexcept
 
void clearPointer () noexcept
 
ObjectType * get () const noexcept
 

Private Attributes

ObjectType * owner
 

Detailed Description

template<class ObjectType, class ReferenceCountingType = ReferenceCountedObject>
class juce::WeakReference< ObjectType, ReferenceCountingType >::SharedPointer

This class is used internally by the WeakReference class - don't use it directly in your code!

See also
WeakReference

Constructor & Destructor Documentation

◆ SharedPointer()

template<class ObjectType , class ReferenceCountingType = ReferenceCountedObject>
juce::WeakReference< ObjectType, ReferenceCountingType >::SharedPointer::SharedPointer ( ObjectType *  obj)
inlineexplicitnoexcept

Member Function Documentation

◆ clearPointer()

template<class ObjectType , class ReferenceCountingType = ReferenceCountedObject>
void juce::WeakReference< ObjectType, ReferenceCountingType >::SharedPointer::clearPointer ( )
inlinenoexcept

◆ get()

template<class ObjectType , class ReferenceCountingType = ReferenceCountedObject>
ObjectType* juce::WeakReference< ObjectType, ReferenceCountingType >::SharedPointer::get ( ) const
inlinenoexcept

Member Data Documentation

◆ owner

template<class ObjectType , class ReferenceCountingType = ReferenceCountedObject>
ObjectType* juce::WeakReference< ObjectType, ReferenceCountingType >::SharedPointer::owner
private

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