Flutter Engine
The Flutter Engine
|
#include <GpuRefCnt.h>
Public Types | |
using | element_type = T |
Public Member Functions | |
constexpr | gr_sp () |
constexpr | gr_sp (std::nullptr_t) |
gr_sp (const gr_sp< T, Ref, Unref > &that) | |
template<typename U , typename = typename std::enable_if<std::is_convertible<U*, T*>::value>::type> | |
gr_sp (const gr_sp< U, Ref, Unref > &that) | |
gr_sp (const sk_sp< T > &that) | |
gr_sp (gr_sp< T, Ref, Unref > &&that) | |
gr_sp (sk_sp< T > &&that) | |
gr_sp (T *obj) | |
~gr_sp () | |
gr_sp & | operator= (std::nullptr_t) |
gr_sp & | operator= (const gr_sp< T, Ref, Unref > &that) |
gr_sp & | operator= (const sk_sp< T > &that) |
gr_sp & | operator= (gr_sp< T, Ref, Unref > &&that) |
gr_sp & | operator= (sk_sp< T > &&that) |
T & | operator* () const |
operator bool () const | |
T * | get () const |
T * | operator-> () const |
void | reset (T *ptr=nullptr) |
Definition at line 22 of file GpuRefCnt.h.
Definition at line 38 of file GpuRefCnt.h.
|
inlineconstexpr |
Definition at line 40 of file GpuRefCnt.h.
|
inlineconstexpr |
Definition at line 41 of file GpuRefCnt.h.
|
inline |
Shares the underlying object by calling Ref(), so that both the argument and the newly created gr_sp both have a reference to it.
Definition at line 47 of file GpuRefCnt.h.
|
inline |
Definition at line 50 of file GpuRefCnt.h.
|
inline |
Definition at line 52 of file GpuRefCnt.h.
|
inline |
Move the underlying object from the argument to the newly created gr_sp. Afterwards only the new gr_sp will have a reference to the object, and the argument will point to null. No call to Ref() or Unref() will be made.
Definition at line 60 of file GpuRefCnt.h.
|
inline |
Copies the underlying object pointer from the argument to the gr_sp. It will then call Ref() on the new object.
Definition at line 66 of file GpuRefCnt.h.
Adopt the bare pointer into the newly created gr_sp. No call to Ref() or Unref() will be made.
Definition at line 72 of file GpuRefCnt.h.
Calls Unref() on the underlying object pointer.
Definition at line 77 of file GpuRefCnt.h.
Definition at line 135 of file GpuRefCnt.h.
|
inlineexplicit |
Definition at line 133 of file GpuRefCnt.h.
Definition at line 128 of file GpuRefCnt.h.
Definition at line 136 of file GpuRefCnt.h.
|
inline |
Shares the underlying object referenced by the argument by calling Ref() on it. If this gr_sp previously had a reference to an object (i.e. not null) it will call Unref() on that object.
Definition at line 91 of file GpuRefCnt.h.
|
inline |
Copies the underlying object pointer from the argument to the gr_sp. If the gr_sp previously held a reference to another object, Unref() will be called on that object. It will then call Ref() on the new object.
Definition at line 103 of file GpuRefCnt.h.
|
inline |
Copies the underlying object pointer from the argument to the gr_sp. If the gr_sp previously held a reference to another object, Unref() will be called on that object. It will then call Ref() on the new object.
Definition at line 123 of file GpuRefCnt.h.
|
inline |
Definition at line 82 of file GpuRefCnt.h.
|
inline |
Adopt the new bare pointer, and call Unref() on any previously held object (if not null). No call to Ref() will be made.
Definition at line 142 of file GpuRefCnt.h.