JUCE  v5.1.1-3-g1a0b28c73
JUCE API
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 WeakReference< ObjectType, ReferenceCountingType >::SharedPointer:
Collaboration diagram for WeakReference< ObjectType, ReferenceCountingType >::SharedPointer:

Public Member Functions

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

Private Attributes

ObjectType *volatile owner
 

Detailed Description

template<class ObjectType, class ReferenceCountingType = ReferenceCountedObject>
class 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>
WeakReference< ObjectType, ReferenceCountingType >::SharedPointer::SharedPointer ( ObjectType *const  obj)
inlineexplicitnoexcept

Member Function Documentation

◆ clearPointer()

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

◆ get()

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

Member Data Documentation

◆ owner

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

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