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< Animator > | lock () const |
If the referenced Animator implementation object still exists it returns an Animator object storing a strong reference to it. | |
void * | getKey () const |
|
default |
Constructor used by the Animator implementation.
To obtain a weak reference use Animator::makeWeak().
|
explicit |
Constructor used by the Animator implementation.
To obtain a weak reference use Animator::makeWeak().
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.
References Animator::Animator().
void * Animator::Weak::getKey | ( | ) | const |