FastLED 3.9.7
Loading...
Searching...
No Matches
CPixelView< PIXEL_TYPE >::pixelset_iterator_base< T > Class Template Reference

Detailed Description

template<class PIXEL_TYPE>
template<class T>
class CPixelView< PIXEL_TYPE >::pixelset_iterator_base< T >

Iterator helper class for CPixelView.

Template Parameters
thetype of the LED array data
Todo
Make this a fully specified/proper iterator

Definition at line 413 of file pixelset.h.

#include <pixelset.h>

Public Member Functions

FASTLED_FORCE_INLINE pixelset_iterator_base (const pixelset_iterator_base &rhs)
 Copy constructor.
 
FASTLED_FORCE_INLINE pixelset_iterator_base (T *_leds, const char _dir)
 Base constructor.
 
FASTLED_FORCE_INLINE pixelset_iterator_baseoperator++ ()
 Increment LED pointer in data direction.
 
FASTLED_FORCE_INLINE pixelset_iterator_base operator++ (int)
 Increment LED pointer in data direction.
 
FASTLED_FORCE_INLINE bool operator== (pixelset_iterator_base &other) const
 Check if iterator is at the same position.
 
FASTLED_FORCE_INLINE bool operator!= (pixelset_iterator_base &other) const
 Check if iterator is not at the same position.
 
FASTLED_FORCE_INLINE PIXEL_TYPE & operator* () const
 Dereference operator, to get underlying pointer to the LEDs.
 

Constructor & Destructor Documentation

◆ pixelset_iterator_base() [1/2]

template<class PIXEL_TYPE >
template<class T >
FASTLED_FORCE_INLINE CPixelView< PIXEL_TYPE >::pixelset_iterator_base< T >::pixelset_iterator_base ( const pixelset_iterator_base< T > & rhs)
inline

Copy constructor.

Definition at line 419 of file pixelset.h.

◆ pixelset_iterator_base() [2/2]

template<class PIXEL_TYPE >
template<class T >
FASTLED_FORCE_INLINE CPixelView< PIXEL_TYPE >::pixelset_iterator_base< T >::pixelset_iterator_base ( T * _leds,
const char _dir )
inline

Base constructor.

Template Parameters
thetype of the LED array data
Parameters
_ledspointer to LED array
_dirdirection of LED array

Definition at line 425 of file pixelset.h.

Member Function Documentation

◆ operator!=()

template<class PIXEL_TYPE >
template<class T >
FASTLED_FORCE_INLINE bool CPixelView< PIXEL_TYPE >::pixelset_iterator_base< T >::operator!= ( pixelset_iterator_base< T > & other) const
inline

Check if iterator is not at the same position.

Definition at line 431 of file pixelset.h.

◆ operator*()

template<class PIXEL_TYPE >
template<class T >
FASTLED_FORCE_INLINE PIXEL_TYPE & CPixelView< PIXEL_TYPE >::pixelset_iterator_base< T >::operator* ( ) const
inline

Dereference operator, to get underlying pointer to the LEDs.

Definition at line 433 of file pixelset.h.

◆ operator++() [1/2]

template<class PIXEL_TYPE >
template<class T >
FASTLED_FORCE_INLINE pixelset_iterator_base & CPixelView< PIXEL_TYPE >::pixelset_iterator_base< T >::operator++ ( )
inline

Increment LED pointer in data direction.

Definition at line 427 of file pixelset.h.

◆ operator++() [2/2]

template<class PIXEL_TYPE >
template<class T >
FASTLED_FORCE_INLINE pixelset_iterator_base CPixelView< PIXEL_TYPE >::pixelset_iterator_base< T >::operator++ ( int )
inline

Increment LED pointer in data direction.

Definition at line 428 of file pixelset.h.

◆ operator==()

template<class PIXEL_TYPE >
template<class T >
FASTLED_FORCE_INLINE bool CPixelView< PIXEL_TYPE >::pixelset_iterator_base< T >::operator== ( pixelset_iterator_base< T > & other) const
inline

Check if iterator is at the same position.

Definition at line 430 of file pixelset.h.


The documentation for this class was generated from the following file: