11template <
typename T, fl::size INLINED_SIZE>
class FixedVector;
13template <
typename T,
typename Allocator>
class HeapVector;
15template <
typename T, fl::size INLINED_SIZE>
class InlinedVector;
17template <
typename T, fl::size N>
class array;
23template <
typename T>
class Slice {
30 template<
typename Alloc>
34 template <fl::size INLINED_SIZE>
38 template <fl::size INLINED_SIZE>
43 template<
typename U,
typename Alloc>
47 template<
typename U, fl::size INLINED_SIZE>
51 template<
typename U, fl::size INLINED_SIZE>
57 template<
typename Alloc>
61 template <fl::size INLINED_SIZE>
65 template <fl::size INLINED_SIZE>
82 template <
typename U, fl::size N>
86 template <
typename U, fl::size N>
92 template <fl::size ARRAYSIZE>
97 template <
typename U, fl::size ARRAYSIZE>
102 template <
typename U, fl::size ARRAYSIZE>
107 template <
typename Iterator>
157 fl::size
find(
const T &value)
const {
158 for (fl::size i = 0; i <
mSize; ++i) {
159 if (
mData[i] == value) {
203 i32 bottomLeftX, i32 bottomLeftY, i32 topRightX,
239 const T &
at(i32
x, i32
y)
const {
vec2< i32 > getLocalCoord(i32 x_world, i32 y_world) const
const T & at(i32 x, i32 y) const
MatrixSlice & operator=(const MatrixSlice &other)=default
MatrixSlice(const MatrixSlice &other)=default
vec2< i32 > getParentCoord(i32 x_local, i32 y_local) const
T & operator()(i32 x, i32 y)
MatrixSlice(T *data, i32 dataWidth, i32 dataHeight, i32 bottomLeftX, i32 bottomLeftY, i32 topRightX, i32 topRightY)
Slice(const Slice &other)
Slice(Iterator begin, Iterator end)
Slice(const HeapVector< U, Alloc > &vector)
Slice(const InlinedVector< T, INLINED_SIZE > &vector)
Slice(const array< U, N > &arr)
Slice(FixedVector< T, INLINED_SIZE > &vector)
Slice(HeapVector< T, Alloc > &vector)
Slice(array< T, N > &arr)
fl::size find(const T &value) const
const T & operator[](fl::size index) const
Slice(InlinedVector< T, INLINED_SIZE > &vector)
Slice(const HeapVector< T, Alloc > &vector)
Slice(U(&array)[ARRAYSIZE])
Slice(array< U, N > &arr)
Slice< T > slice(fl::size start, fl::size end) const
Slice(const FixedVector< U, INLINED_SIZE > &vector)
T & operator[](fl::size index)
Slice(const FixedVector< T, INLINED_SIZE > &vector)
Slice(const U(&array)[ARRAYSIZE])
Slice & operator=(const Slice &other)
Slice(const array< T, N > &arr)
Slice< T > slice(fl::size start) const
Slice(T(&array)[ARRAYSIZE])
Slice(T *data, fl::size size)
Slice(const InlinedVector< U, INLINED_SIZE > &vector)
A fixed-size array implementation similar to std::array.
FASTLED_FORCE_INLINE T clamp(T value, T min, T max)
HeapVector< T, Allocator > vector