Flutter Engine
The Flutter Engine
|
#include <SkFixedArray.h>
Public Types | |
using | value_type = T |
Public Member Functions | |
FixedArray ()=default | |
FixedArray (std::initializer_list< T > values) | |
FixedArray (int reserveCount) | |
FixedArray (const T *array, int count) | |
FixedArray (const FixedArray< N, T > &that) | |
FixedArray< N, T > & | operator= (const FixedArray< N, T > &that) |
T & | operator[] (size_t index) |
const T & | operator[] (size_t index) const |
bool | operator== (const FixedArray< N, T > &that) const |
bool | operator!= (const FixedArray< N, T > &that) const |
int | size () const |
bool | empty () const |
void | clear () |
void | reset (const T *array, int count) |
void | resize (int newSize) |
T & | push_back () |
void | push_back (T x) |
void | pop_back () |
void | removeShuffle (int n) |
T * | data () |
const T * | data () const |
T * | begin () |
const T * | begin () const |
T * | end () |
const T * | end () const |
T & | front () |
const T & | front () const |
T & | back () |
const T & | back () const |
void | reserve (int size) |
constexpr int | capacity () const |
Represents an array of T
(must be a trivial type) that cannot grow past a fixed size N
. The fixed-size restriction allows for tighter codegen and a smaller memory footprint. Missing methods from TArray (e.g. push_back_n
) can be added on demand.
The trivial-type restriction is only to simplify implementation; if there is a need, we can adopt proper move/copy semantics in this class as well.
Definition at line 29 of file SkFixedArray.h.
Definition at line 31 of file SkFixedArray.h.
|
default |
|
inline |
Definition at line 35 of file SkFixedArray.h.
|
inline |
Definition at line 42 of file SkFixedArray.h.
|
inline |
Definition at line 49 of file SkFixedArray.h.
|
inline |
Definition at line 53 of file SkFixedArray.h.
Definition at line 174 of file SkFixedArray.h.
Definition at line 179 of file SkFixedArray.h.
Definition at line 148 of file SkFixedArray.h.
Definition at line 152 of file SkFixedArray.h.
|
inlineconstexpr |
Definition at line 190 of file SkFixedArray.h.
|
inline |
Definition at line 90 of file SkFixedArray.h.
Definition at line 140 of file SkFixedArray.h.
Definition at line 144 of file SkFixedArray.h.
|
inline |
Definition at line 86 of file SkFixedArray.h.
Definition at line 156 of file SkFixedArray.h.
Definition at line 160 of file SkFixedArray.h.
Definition at line 164 of file SkFixedArray.h.
Definition at line 169 of file SkFixedArray.h.
|
inline |
Definition at line 78 of file SkFixedArray.h.
|
inline |
Definition at line 57 of file SkFixedArray.h.
|
inline |
Definition at line 74 of file SkFixedArray.h.
|
inline |
Definition at line 64 of file SkFixedArray.h.
|
inline |
Definition at line 69 of file SkFixedArray.h.
|
inline |
Definition at line 126 of file SkFixedArray.h.
Definition at line 121 of file SkFixedArray.h.
Definition at line 131 of file SkFixedArray.h.
Definition at line 184 of file SkFixedArray.h.
|
inline |
Definition at line 82 of file SkFixedArray.h.