Loading...
Searching...
No Matches
Animator::Weak Class Reference

#include <juce_Animator.h>

Public Member Functions

 Weak ()=default
 Constructor used by the Animator implementation.
 
 Weak (std::shared_ptr< Impl > p)
 Constructor used by the Animator implementation.
 
std::optional< Animatorlock () const
 If the referenced Animator implementation object still exists it returns an Animator object storing a strong reference to it.
 
void * getKey () const
 

Constructor & Destructor Documentation

◆ Weak() [1/2]

Animator::Weak::Weak ( )
default

Constructor used by the Animator implementation.

To obtain a weak reference use Animator::makeWeak().

◆ Weak() [2/2]

Animator::Weak::Weak ( std::shared_ptr< Impl > p)
explicit

Constructor used by the Animator implementation.

To obtain a weak reference use Animator::makeWeak().

Member Function Documentation

◆ lock()

std::optional< Animator > Animator::Weak::lock ( ) const

If the referenced Animator implementation object still exists it returns an Animator object storing a strong reference to it.

If the implementation object was deleted it returns a nullopt.

◆ getKey()

void * Animator::Weak::getKey ( ) const

The documentation for this class was generated from the following file:
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram