FastLED 3.9.3
Loading...
Searching...
No Matches
WeakRef< T > Class Template Reference

Detailed Description

template<typename T>
class WeakRef< T >

Definition at line 271 of file ref.h.

Public Member Functions

 WeakRef (const Ref< T > &ptr)
 
template<typename U >
 WeakRef (const Ref< U > &ptr)
 
 WeakRef (const WeakRef &other)
 
template<typename U >
 WeakRef (const WeakRef< U > &other)
 
 WeakRef (WeakRef &&other) noexcept
 
 operator bool () const
 
bool operator! () const
 
bool operator== (const WeakRef &other) const
 
bool operator!= (const WeakRef &other) const
 
bool operator== (const T *other) const
 
bool operator== (T *other) const
 
bool operator== (const Ref< T > &other) const
 
bool operator!= (const T *other) const
 
WeakRefoperator= (const WeakRef &other)
 
Ref< T > lock () const
 
bool expired () const
 
void reset ()
 

Public Attributes

Ref< WeakReferentmWeakRef
 

Constructor & Destructor Documentation

◆ WeakRef() [1/6]

template<typename T >
WeakRef< T >::WeakRef ( )
inline

Definition at line 273 of file ref.h.

◆ WeakRef() [2/6]

template<typename T >
WeakRef< T >::WeakRef ( const Ref< T > & ptr)
inline

Definition at line 275 of file ref.h.

◆ WeakRef() [3/6]

template<typename T >
template<typename U >
WeakRef< T >::WeakRef ( const Ref< U > & ptr)
inline

Definition at line 288 of file ref.h.

◆ WeakRef() [4/6]

template<typename T >
WeakRef< T >::WeakRef ( const WeakRef< T > & other)
inline

Definition at line 301 of file ref.h.

◆ WeakRef() [5/6]

template<typename T >
template<typename U >
WeakRef< T >::WeakRef ( const WeakRef< U > & other)
inline

Definition at line 304 of file ref.h.

◆ WeakRef() [6/6]

template<typename T >
WeakRef< T >::WeakRef ( WeakRef< T > && other)
inlinenoexcept

Definition at line 306 of file ref.h.

◆ ~WeakRef()

template<typename T >
WeakRef< T >::~WeakRef ( )
inline

Definition at line 308 of file ref.h.

Member Function Documentation

◆ expired()

template<typename T >
bool WeakRef< T >::expired ( ) const
inline

Definition at line 364 of file ref.h.

◆ lock()

template<typename T >
Ref< T > WeakRef< T >::lock ( ) const
inline

Definition at line 351 of file ref.h.

◆ operator bool()

template<typename T >
WeakRef< T >::operator bool ( ) const
inline

Definition at line 310 of file ref.h.

◆ operator!()

template<typename T >
bool WeakRef< T >::operator! ( ) const
inline

Definition at line 312 of file ref.h.

◆ operator!=() [1/2]

template<typename T >
bool WeakRef< T >::operator!= ( const T * other) const
inline

Definition at line 341 of file ref.h.

◆ operator!=() [2/2]

template<typename T >
bool WeakRef< T >::operator!= ( const WeakRef< T > & other) const
inline

Definition at line 321 of file ref.h.

◆ operator=()

template<typename T >
WeakRef & WeakRef< T >::operator= ( const WeakRef< T > & other)
inline

Definition at line 346 of file ref.h.

◆ operator==() [1/4]

template<typename T >
bool WeakRef< T >::operator== ( const Ref< T > & other) const
inline

Definition at line 334 of file ref.h.

◆ operator==() [2/4]

template<typename T >
bool WeakRef< T >::operator== ( const T * other) const
inline

Definition at line 325 of file ref.h.

◆ operator==() [3/4]

template<typename T >
bool WeakRef< T >::operator== ( const WeakRef< T > & other) const
inline

Definition at line 317 of file ref.h.

◆ operator==() [4/4]

template<typename T >
bool WeakRef< T >::operator== ( T * other) const
inline

Definition at line 327 of file ref.h.

◆ reset()

template<typename T >
void WeakRef< T >::reset ( )
inline

Definition at line 374 of file ref.h.

Member Data Documentation

◆ mWeakRef

template<typename T >
Ref<WeakReferent> WeakRef< T >::mWeakRef

Definition at line 379 of file ref.h.


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