Flutter Engine
The Flutter Engine
|
#include "include/core/SkTypes.h"
#include "include/private/base/SkDebug.h"
#include <atomic>
#include <cstddef>
#include <cstdint>
#include <iosfwd>
#include <type_traits>
#include <utility>
Go to the source code of this file.
Classes | |
class | SkRefCntBase |
class | SkRefCnt |
class | SkNVRefCnt< Derived > |
class | sk_sp< T > |
Functions | |
template<typename T > | |
static T * | SkRef (T *obj) |
template<typename T > | |
static T * | SkSafeRef (T *obj) |
template<typename T > | |
static void | SkSafeUnref (T *obj) |
template<typename T > | |
void | swap (sk_sp< T > &a, sk_sp< T > &b) |
template<typename T , typename U > | |
bool | operator== (const sk_sp< T > &a, const sk_sp< U > &b) |
template<typename T > | |
bool | operator== (const sk_sp< T > &a, std::nullptr_t) |
template<typename T > | |
bool | operator== (std::nullptr_t, const sk_sp< T > &b) |
template<typename T , typename U > | |
bool | operator!= (const sk_sp< T > &a, const sk_sp< U > &b) |
template<typename T > | |
bool | operator!= (const sk_sp< T > &a, std::nullptr_t) |
template<typename T > | |
bool | operator!= (std::nullptr_t, const sk_sp< T > &b) |
template<typename C , typename CT , typename T > | |
auto | operator<< (std::basic_ostream< C, CT > &os, const sk_sp< T > &sp) -> decltype(os<< sp.get()) |
template<typename T , typename... Args> | |
sk_sp< T > | sk_make_sp (Args &&... args) |
template<typename T > | |
sk_sp< T > | sk_ref_sp (T *obj) |
template<typename T > | |
sk_sp< T > | sk_ref_sp (const T *obj) |
|
inline |
Definition at line 355 of file SkRefCnt.h.
Definition at line 358 of file SkRefCnt.h.
Definition at line 361 of file SkRefCnt.h.
auto operator<< | ( | std::basic_ostream< C, CT > & | os, |
const sk_sp< T > & | sp | ||
) | -> decltype(os << sp.get()) |
Definition at line 366 of file SkRefCnt.h.
|
inline |
Definition at line 345 of file SkRefCnt.h.
Definition at line 348 of file SkRefCnt.h.
Definition at line 351 of file SkRefCnt.h.
Definition at line 371 of file SkRefCnt.h.
Definition at line 385 of file SkRefCnt.h.
Definition at line 381 of file SkRefCnt.h.
Call obj->ref() and return obj. The obj must not be nullptr.
Definition at line 132 of file SkRefCnt.h.
Check if the argument is non-null, and if so, call obj->ref() and return obj.
Definition at line 140 of file SkRefCnt.h.
Check if the argument is non-null, and if so, call obj->unref()
Definition at line 149 of file SkRefCnt.h.