38 ESPHOME_ALWAYS_INLINE
bool empty()
const {
return this->
effects_.empty(); }
Lightweight read-only view over a const array stored in RODATA (will typically be in flash memory).
StringRef is a reference to a string owned by something else.
ESPHOME_ALWAYS_INLINE StringRef operator*() const
ESPHOME_ALWAYS_INLINE Iterator(const ConstVector< LightEffect * > &effects, size_t index)
const ConstVector< LightEffect * > & effects_
ESPHOME_ALWAYS_INLINE bool operator!=(const Iterator &other) const
ESPHOME_ALWAYS_INLINE Iterator & operator++()
Effect names as the native API lists them: "None" first, then each effect; empty without effects.
const ConstVector< LightEffect * > & effects_
ESPHOME_ALWAYS_INLINE Iterator end() const
LightEffectNames(const ConstVector< LightEffect * > &effects)
ESPHOME_ALWAYS_INLINE Iterator begin() const
ESPHOME_ALWAYS_INLINE bool empty() const
constexpr StringRef EFFECT_NONE_REF