12template <
typename T,
size_t INLINED_SIZE>
class FixedVector;
14template <
typename T,
typename Allocator>
class HeapVector;
16template <
typename T,
size_t INLINED_SIZE>
class InlinedVector;
22template <
typename T>
class Slice {
27 template<
typename Alloc>
31 template <
size_t INLINED_SIZE>
35 template <
size_t INLINED_SIZE>
39 template <
typename U,
typename Alloc>
43 template <
typename U,
size_t INLINED_SIZE>
47 template <
typename U,
size_t INLINED_SIZE>
51 template <
size_t ARRAYSIZE>
54 template <
typename U,
size_t ARRAYSIZE>
57 template <
typename Iterator>
107 size_t find(
const T &value)
const {
108 for (
size_t i = 0; i <
mSize; ++i) {
109 if (
mData[i] == value) {
153 int32_t bottomLeftX, int32_t bottomLeftY, int32_t topRightX,
189 const T &
at(int32_t
x, int32_t
y)
const {
T * operator[](int32_t row)
MatrixSlice(T *data, int32_t dataWidth, int32_t dataHeight, int32_t bottomLeftX, int32_t bottomLeftY, int32_t topRightX, int32_t topRightY)
vec2< int32_t > getLocalCoord(int32_t x_world, int32_t y_world) const
T & operator()(int32_t x, int32_t y)
const T & at(int32_t x, int32_t y) const
MatrixSlice & operator=(const MatrixSlice &other)=default
vec2< int32_t > mBottomLeft
T & at(int32_t x, int32_t y)
MatrixSlice(const MatrixSlice &other)=default
vec2< int32_t > getParentCoord(int32_t x_local, int32_t y_local) const
vec2< int32_t > mTopRight
Slice(const Slice &other)
Slice(Iterator begin, Iterator end)
Slice(const HeapVector< U, Alloc > &vector)
Slice(const InlinedVector< T, INLINED_SIZE > &vector)
Slice< T > slice(size_t start) const
Slice< T > slice(size_t start, size_t end) const
Slice(T(&array)[ARRAYSIZE])
T & operator[](size_t index)
Slice(const HeapVector< T, Alloc > &vector)
Slice(const FixedVector< U, INLINED_SIZE > &vector)
Slice(const FixedVector< T, INLINED_SIZE > &vector)
Slice & operator=(const Slice &other)
const T & operator[](size_t index) const
Slice(T(&array)[ARRAYSIZE])
size_t find(const T &value) const
Slice(T *data, size_t 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
Implements a simple red square effect for 2D LED grids.