FastLED 3.9.3
Loading...
Searching...
No Matches
FixedVector< T, N > Class Template Reference

Detailed Description

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

Definition at line 17 of file fixed_vector.h.

Public Types

typedef T * iterator
 
typedef const T * const_iterator
 

Public Member Functions

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 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
 
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* FixedVector< T, N >::const_iterator

Definition at line 27 of file fixed_vector.h.

◆ iterator

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

Definition at line 26 of file fixed_vector.h.

Constructor & Destructor Documentation

◆ FixedVector()

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

Definition at line 29 of file fixed_vector.h.

◆ ~FixedVector()

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

Definition at line 32 of file fixed_vector.h.

Member Function Documentation

◆ back() [1/2]

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

Definition at line 161 of file fixed_vector.h.

◆ back() [2/2]

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

Definition at line 165 of file fixed_vector.h.

◆ begin() [1/2]

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

Definition at line 170 of file fixed_vector.h.

◆ begin() [2/2]

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

Definition at line 171 of file fixed_vector.h.

◆ capacity()

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

Definition at line 56 of file fixed_vector.h.

◆ clear()

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

Definition at line 78 of file fixed_vector.h.

◆ empty()

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

Definition at line 51 of file fixed_vector.h.

◆ end() [1/2]

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

Definition at line 172 of file fixed_vector.h.

◆ end() [2/2]

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

Definition at line 173 of file fixed_vector.h.

◆ erase() [1/2]

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

Definition at line 98 of file fixed_vector.h.

◆ erase() [2/2]

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

Definition at line 85 of file fixed_vector.h.

◆ find() [1/2]

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

Definition at line 106 of file fixed_vector.h.

◆ find() [2/2]

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

Definition at line 139 of file fixed_vector.h.

◆ find_if()

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

Definition at line 116 of file fixed_vector.h.

◆ front() [1/2]

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

Definition at line 153 of file fixed_vector.h.

◆ front() [2/2]

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

Definition at line 157 of file fixed_vector.h.

◆ has()

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

Definition at line 148 of file fixed_vector.h.

◆ insert()

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

Definition at line 125 of file fixed_vector.h.

◆ operator[]() [1/2]

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

Definition at line 37 of file fixed_vector.h.

◆ operator[]() [2/2]

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

Definition at line 42 of file fixed_vector.h.

◆ pop_back()

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

Definition at line 70 of file fixed_vector.h.

◆ push_back()

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

Definition at line 61 of file fixed_vector.h.

◆ size()

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

Definition at line 47 of file fixed_vector.h.

Member Data Documentation

◆ data

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

Definition at line 21 of file fixed_vector.h.

◆ raw

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

Definition at line 20 of file fixed_vector.h.


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