FastLED 3.9.7
Loading...
Searching...
No Matches
fl::FixedVector< T, N > Class Template Reference

Detailed Description

template<typename T, size_t N>
class fl::FixedVector< T, N >

Definition at line 19 of file vector.h.

Public Types

typedef T * iterator
 
typedef const T * const_iterator
 

Public Member Functions

 FixedVector (const T(&values)[N])
 
T & operator[] (size_t index)
 
const T & operator[] (size_t index) const
 
constexpr size_t size () const
 
constexpr bool empty () const
 
constexpr size_t capacity () const
 
void push_back (const T &value)
 
void assign (const T *values, size_t count)
 
void assign (const_iterator begin, const_iterator end)
 
void pop_back ()
 
void clear ()
 
iterator erase (iterator pos)
 
iterator erase (const T &value)
 
iterator find (const T &value)
 
template<typename Predicate >
iterator find_if (Predicate pred)
 
bool insert (iterator pos, const T &value)
 
const_iterator find (const T &value) const
 
iterator data ()
 
const_iterator data () const
 
bool has (const T &value) const
 
T & front ()
 
const T & front () const
 
T & back ()
 
const T & back () const
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 

Member Typedef Documentation

◆ const_iterator

template<typename T , size_t N>
typedef const T* fl::FixedVector< T, N >::const_iterator

Definition at line 29 of file vector.h.

◆ iterator

template<typename T , size_t N>
typedef T* fl::FixedVector< T, N >::iterator

Definition at line 28 of file vector.h.

Constructor & Destructor Documentation

◆ FixedVector() [1/2]

template<typename T , size_t N>
fl::FixedVector< T, N >::FixedVector ( )
inlineconstexpr

Definition at line 31 of file vector.h.

◆ FixedVector() [2/2]

template<typename T , size_t N>
fl::FixedVector< T, N >::FixedVector ( const T(&) values[N])
inline

Definition at line 33 of file vector.h.

◆ ~FixedVector()

template<typename T , size_t N>
fl::FixedVector< T, N >::~FixedVector ( )
inline

Definition at line 38 of file vector.h.

Member Function Documentation

◆ assign() [1/2]

template<typename T , size_t N>
void fl::FixedVector< T, N >::assign ( const T * values,
size_t count )
inline

Definition at line 79 of file vector.h.

◆ assign() [2/2]

template<typename T , size_t N>
void fl::FixedVector< T, N >::assign ( const_iterator begin,
const_iterator end )
inline

Definition at line 86 of file vector.h.

◆ back() [1/2]

template<typename T , size_t N>
T & fl::FixedVector< T, N >::back ( )
inline

Definition at line 193 of file vector.h.

◆ back() [2/2]

template<typename T , size_t N>
const T & fl::FixedVector< T, N >::back ( ) const
inline

Definition at line 197 of file vector.h.

◆ begin() [1/2]

template<typename T , size_t N>
iterator fl::FixedVector< T, N >::begin ( )
inline

Definition at line 202 of file vector.h.

◆ begin() [2/2]

template<typename T , size_t N>
const_iterator fl::FixedVector< T, N >::begin ( ) const
inline

Definition at line 203 of file vector.h.

◆ capacity()

template<typename T , size_t N>
size_t fl::FixedVector< T, N >::capacity ( ) const
inlineconstexpr

Definition at line 66 of file vector.h.

◆ clear()

template<typename T , size_t N>
void fl::FixedVector< T, N >::clear ( )
inline

Definition at line 102 of file vector.h.

◆ data() [1/2]

template<typename T , size_t N>
iterator fl::FixedVector< T, N >::data ( )
inline

Definition at line 172 of file vector.h.

◆ data() [2/2]

template<typename T , size_t N>
const_iterator fl::FixedVector< T, N >::data ( ) const
inline

Definition at line 176 of file vector.h.

◆ empty()

template<typename T , size_t N>
bool fl::FixedVector< T, N >::empty ( ) const
inlineconstexpr

Definition at line 61 of file vector.h.

◆ end() [1/2]

template<typename T , size_t N>
iterator fl::FixedVector< T, N >::end ( )
inline

Definition at line 204 of file vector.h.

◆ end() [2/2]

template<typename T , size_t N>
const_iterator fl::FixedVector< T, N >::end ( ) const
inline

Definition at line 205 of file vector.h.

◆ erase() [1/2]

template<typename T , size_t N>
iterator fl::FixedVector< T, N >::erase ( const T & value)
inline

Definition at line 122 of file vector.h.

◆ erase() [2/2]

template<typename T , size_t N>
iterator fl::FixedVector< T, N >::erase ( iterator pos)
inline

Definition at line 109 of file vector.h.

◆ find() [1/2]

template<typename T , size_t N>
iterator fl::FixedVector< T, N >::find ( const T & value)
inline

Definition at line 130 of file vector.h.

◆ find() [2/2]

template<typename T , size_t N>
const_iterator fl::FixedVector< T, N >::find ( const T & value) const
inline

Definition at line 163 of file vector.h.

◆ find_if()

template<typename T , size_t N>
template<typename Predicate >
iterator fl::FixedVector< T, N >::find_if ( Predicate pred)
inline

Definition at line 140 of file vector.h.

◆ front() [1/2]

template<typename T , size_t N>
T & fl::FixedVector< T, N >::front ( )
inline

Definition at line 185 of file vector.h.

◆ front() [2/2]

template<typename T , size_t N>
const T & fl::FixedVector< T, N >::front ( ) const
inline

Definition at line 189 of file vector.h.

◆ has()

template<typename T , size_t N>
bool fl::FixedVector< T, N >::has ( const T & value) const
inline

Definition at line 180 of file vector.h.

◆ insert()

template<typename T , size_t N>
bool fl::FixedVector< T, N >::insert ( iterator pos,
const T & value )
inline

Definition at line 149 of file vector.h.

◆ operator[]() [1/2]

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

Definition at line 43 of file vector.h.

◆ operator[]() [2/2]

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

Definition at line 48 of file vector.h.

◆ pop_back()

template<typename T , size_t N>
void fl::FixedVector< T, N >::pop_back ( )
inline

Definition at line 94 of file vector.h.

◆ push_back()

template<typename T , size_t N>
void fl::FixedVector< T, N >::push_back ( const T & value)
inline

Definition at line 71 of file vector.h.

◆ size()

template<typename T , size_t N>
size_t fl::FixedVector< T, N >::size ( ) const
inlineconstexpr

Definition at line 57 of file vector.h.

Member Data Documentation

◆ mData

template<typename T , size_t N>
T fl::FixedVector< T, N >::mData[N]

Definition at line 23 of file vector.h.

◆ mRaw

template<typename T , size_t N>
char fl::FixedVector< T, N >::mRaw[N *sizeof(T)]

Definition at line 22 of file vector.h.


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