FastLED 3.9.15
Loading...
Searching...
No Matches

◆ operator=() [1/2]

template<class PIXEL_TYPE>
CPixelView & CPixelView< PIXEL_TYPE >::operator= ( const CPixelView< PIXEL_TYPE > & rhs)
inline

Copy the contents of the passed-in set to our set.

Note
If one set is smaller than the other, only the smallest number of items will be copied over.

Definition at line 139 of file pixelset.h.

139 {
140 for(iterator pixel = begin(), rhspixel = rhs.begin(), _end = end(), rhs_end = rhs.end(); (pixel != _end) && (rhspixel != rhs_end); ++pixel, ++rhspixel) {
141 (*pixel) = (*rhspixel);
142 }
143 return *this;
144 }
iterator end()
Makes an iterator instance for the end of the LED set.
Definition pixelset.h:433
pixelset_iterator_base< PIXEL_TYPE > iterator
Iterator helper type for this class.
Definition pixelset.h:429
iterator begin()
Makes an iterator instance for the start of the LED set.
Definition pixelset.h:432
Represents a set of LED objects.
Definition pixelset.h:59