Flutter Engine
The Flutter Engine
|
#include <SkAnySubclass.h>
Public Member Functions | |
SkAnySubclass ()=default | |
~SkAnySubclass () | |
SkAnySubclass (const SkAnySubclass &)=delete | |
SkAnySubclass & | operator= (const SkAnySubclass &)=delete |
SkAnySubclass (SkAnySubclass &&)=delete | |
SkAnySubclass & | operator= (SkAnySubclass &&)=delete |
template<typename T , typename... Args> | |
void | emplace (Args &&... args) |
void | reset () |
const Base * | get () const |
Base * | get () |
Base * | operator-> () |
const Base * | operator-> () const |
Stores any subclass T
of Base
, where sizeof(T) <= Size
, without using the heap. Doesn't need advance knowledge of T, so it's particularly suited to platform or backend implementations of a generic interface, where the set of possible subclasses is finite and known, but can't be made available at compile-time.
Definition at line 25 of file SkAnySubclass.h.
|
default |
|
inline |
Definition at line 28 of file SkAnySubclass.h.
|
delete |
|
delete |
|
inline |
Definition at line 38 of file SkAnySubclass.h.
|
inline |
Definition at line 60 of file SkAnySubclass.h.
|
inline |
Definition at line 55 of file SkAnySubclass.h.
|
inline |
Definition at line 65 of file SkAnySubclass.h.
|
inline |
Definition at line 66 of file SkAnySubclass.h.
|
delete |
|
delete |
|
inline |
Definition at line 48 of file SkAnySubclass.h.