11template <
typename T,
size_t INLINED_SIZE>
class FixedVector;
15template <
typename T,
size_t INLINED_SIZE>
class InlinedVector;
21template <
typename T>
class Slice {
29 template <
size_t INLINED_SIZE>
33 template <
size_t INLINED_SIZE>
41 template <
typename U,
size_t INLINED_SIZE>
45 template <
typename U,
size_t INLINED_SIZE>
49 template <
size_t ARRAYSIZE>
52 template <
typename U,
size_t ARRAYSIZE>
55 template <
typename Iterator>
105 size_t find(
const T &value)
const {
106 for (
size_t i = 0; i <
mSize; ++i) {
107 if (
mData[i] == value) {
151 int32_t bottomLeftX, int32_t bottomLeftY, int32_t topRightX,
187 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 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 > &vector)
Slice(const FixedVector< U, INLINED_SIZE > &vector)
Slice(const FixedVector< T, INLINED_SIZE > &vector)
Slice(const HeapVector< U > &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)
Implements a simple red square effect for 2D LED grids.