FastLED 3.9.3
Loading...
Searching...
No Matches
Slice< T > Class Template Reference

Detailed Description

template<typename T>
class Slice< T >

Definition at line 7 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 >
Slice< T >::Slice ( )
inline

Definition at line 9 of file slice.h.

◆ Slice() [2/3]

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

Definition at line 10 of file slice.h.

◆ Slice() [3/3]

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

Definition at line 12 of file slice.h.

Member Function Documentation

◆ begin()

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

Definition at line 36 of file slice.h.

◆ data() [1/2]

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

Definition at line 52 of file slice.h.

◆ data() [2/2]

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

Definition at line 48 of file slice.h.

◆ end()

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

Definition at line 40 of file slice.h.

◆ find()

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

Definition at line 72 of file slice.h.

◆ length()

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

Definition at line 44 of file slice.h.

◆ operator Slice< const T >()

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

Definition at line 22 of file slice.h.

◆ operator=()

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

Definition at line 15 of file slice.h.

◆ operator[]() [1/2]

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

Definition at line 26 of file slice.h.

◆ operator[]() [2/2]

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

Definition at line 31 of file slice.h.

◆ size()

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

Definition at line 56 of file slice.h.

◆ slice() [1/2]

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

Definition at line 65 of file slice.h.

◆ slice() [2/2]

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

Definition at line 60 of file slice.h.


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