FastLED 3.9.7
Loading...
Searching...
No Matches
fl::Slice< T > Class Template Reference

Detailed Description

template<typename T>
class fl::Slice< T >

Definition at line 13 of file slice.h.

Public Member Functions

 Slice (T *data, size_t size)
 
 Slice (const Slice &other)
 
Sliceoperator= (const Slice &other)
 
 operator Slice< const T > () const
 
T & operator[] (size_t index)
 
const T & operator[] (size_t index) const
 
T * begin () const
 
T * end () const
 
size_t length () const
 
const T * data () const
 
T * data ()
 
size_t size () const
 
Slice< T > slice (size_t start, size_t end) const
 
Slice< T > slice (size_t start) const
 
size_t find (const T &value) const
 

Constructor & Destructor Documentation

◆ Slice() [1/3]

template<typename T >
fl::Slice< T >::Slice ( )
inline

Definition at line 15 of file slice.h.

◆ Slice() [2/3]

template<typename T >
fl::Slice< T >::Slice ( T * data,
size_t size )
inline

Definition at line 16 of file slice.h.

◆ Slice() [3/3]

template<typename T >
fl::Slice< T >::Slice ( const Slice< T > & other)
inline

Definition at line 18 of file slice.h.

Member Function Documentation

◆ begin()

template<typename T >
T * fl::Slice< T >::begin ( ) const
inline

Definition at line 42 of file slice.h.

◆ data() [1/2]

template<typename T >
T * fl::Slice< T >::data ( )
inline

Definition at line 58 of file slice.h.

◆ data() [2/2]

template<typename T >
const T * fl::Slice< T >::data ( ) const
inline

Definition at line 54 of file slice.h.

◆ end()

template<typename T >
T * fl::Slice< T >::end ( ) const
inline

Definition at line 46 of file slice.h.

◆ find()

template<typename T >
size_t fl::Slice< T >::find ( const T & value) const
inline

Definition at line 78 of file slice.h.

◆ length()

template<typename T >
size_t fl::Slice< T >::length ( ) const
inline

Definition at line 50 of file slice.h.

◆ operator Slice< const T >()

template<typename T >
fl::Slice< T >::operator Slice< const T > ( ) const
inline

Definition at line 28 of file slice.h.

◆ operator=()

template<typename T >
Slice & fl::Slice< T >::operator= ( const Slice< T > & other)
inline

Definition at line 21 of file slice.h.

◆ operator[]() [1/2]

template<typename T >
T & fl::Slice< T >::operator[] ( size_t index)
inline

Definition at line 32 of file slice.h.

◆ operator[]() [2/2]

template<typename T >
const T & fl::Slice< T >::operator[] ( size_t index) const
inline

Definition at line 37 of file slice.h.

◆ size()

template<typename T >
size_t fl::Slice< T >::size ( ) const
inline

Definition at line 62 of file slice.h.

◆ slice() [1/2]

template<typename T >
Slice< T > fl::Slice< T >::slice ( size_t start) const
inline

Definition at line 71 of file slice.h.

◆ slice() [2/2]

template<typename T >
Slice< T > fl::Slice< T >::slice ( size_t start,
size_t end ) const
inline

Definition at line 66 of file slice.h.


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