FastLED 3.9.15
Loading...
Searching...
No Matches
fl::Ptr< T > Class Template Reference

Detailed Description

template<typename T>
class fl::Ptr< T >

Definition at line 102 of file ptr.h.

#include <ptr.h>

+ Inheritance diagram for fl::Ptr< T >:
+ Collaboration diagram for fl::Ptr< T >:

Public Member Functions

 Ptr ()
 
 Ptr (const Ptr &other)
 
template<typename U, typename = fl::is_derived<T, U>>
 Ptr (const Ptr< U > &refptr)
 
 Ptr (Ptr &&other) noexcept
 
 Ptr (T *referent)=delete
 
 ~Ptr ()
 
T * get () const
 
bool isOwned () const
 
 operator bool () const noexcept
 
bool operator!= (const Ptr &other) const
 
bool operator!= (const T *other) const
 
T & operator* () const
 
T * operator-> () const
 
bool operator< (const Ptr &other) const
 
Ptroperator= (const Ptr &other)
 
Ptroperator= (Ptr &&other) noexcept
 
Ptroperator= (T *referent)=delete
 
bool operator== (const Ptr &other) const
 
bool operator== (const T *other) const
 
T * release ()
 
void reset ()
 
void reset (Ptr< T > &refptr)
 
void swap (Ptr &other) noexcept
 
WeakPtr< T > weakPtr () const
 
WeakPtr< T > weakRefNoCreate () const
 

Static Public Member Functions

template<typename... Args>
static Ptr< T > New (Args... args)
 
static Ptr NoTracking (T &referent)
 
static Ptr< T > Null ()
 
static Ptr TakeOwnership (T *ptr)
 
- Static Public Member Functions inherited from fl::PtrTraits< T >
static Ptr< T > New ()
 
template<typename... Args>
static Ptr< T > New (Args... args)
 

Private Member Functions

 Ptr (T *referent, bool from_heap)
 

Private Attributes

T * referent_
 

Friends

class PtrTraits< T >
 

Additional Inherited Members

- Public Types inherited from fl::PtrTraits< T >
using element_type = T
 
using ptr_type = Ptr<T>
 

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