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

Detailed Description

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

Definition at line 210 of file vector.h.

Public Types

typedef T * iterator
 
typedef const T * const_iterator
 

Public Member Functions

 HeapVector (size_t size=0, const T &value=T())
 
 HeapVector (const HeapVector< T > &other)
 
HeapVectoroperator= (const HeapVector< T > &other)
 
void ensure_size (size_t n)
 
void reserve (size_t n)
 
void resize (size_t n)
 
void resize (size_t n, const T &value)
 
T & operator[] (size_t index)
 
const T & operator[] (size_t index) const
 
size_t size () const
 
bool empty () const
 
size_t capacity () const
 
void push_back (const T &value)
 
void pop_back ()
 
void clear ()
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
T & front ()
 
const T & front () const
 
T & back ()
 
const T & back () const
 
iterator find (const T &value)
 
const_iterator find (const T &value) const
 
template<typename Predicate >
iterator find_if (Predicate pred)
 
bool has (const T &value) const
 
bool erase (iterator pos, T *out_value=nullptr)
 
void erase (const T &value)
 
void swap (HeapVector< T > &other)
 
void swap (iterator a, iterator b)
 
bool full () const
 
bool insert (iterator pos, const T &value)
 
void assign (const T *values, size_t count)
 
void assign (const_iterator begin, const_iterator end)
 
T * data ()
 
const T * data () const
 

Member Typedef Documentation

◆ const_iterator

template<typename T >
typedef const T* fl::HeapVector< T >::const_iterator

Definition at line 219 of file vector.h.

◆ iterator

template<typename T >
typedef T* fl::HeapVector< T >::iterator

Definition at line 218 of file vector.h.

Constructor & Destructor Documentation

◆ HeapVector() [1/2]

template<typename T >
fl::HeapVector< T >::HeapVector ( size_t size = 0,
const T & value = T() )
inline

Definition at line 222 of file vector.h.

◆ HeapVector() [2/2]

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

Definition at line 229 of file vector.h.

◆ ~HeapVector()

template<typename T >
fl::HeapVector< T >::~HeapVector ( )
inline

Definition at line 240 of file vector.h.

Member Function Documentation

◆ assign() [1/2]

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

Definition at line 438 of file vector.h.

◆ assign() [2/2]

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

Definition at line 442 of file vector.h.

◆ back() [1/2]

template<typename T >
T & fl::HeapVector< T >::back ( )
inline

Definition at line 343 of file vector.h.

◆ back() [2/2]

template<typename T >
const T & fl::HeapVector< T >::back ( ) const
inline

Definition at line 347 of file vector.h.

◆ begin() [1/2]

template<typename T >
iterator fl::HeapVector< T >::begin ( )
inline

Definition at line 329 of file vector.h.

◆ begin() [2/2]

template<typename T >
const_iterator fl::HeapVector< T >::begin ( ) const
inline

Definition at line 330 of file vector.h.

◆ capacity()

template<typename T >
size_t fl::HeapVector< T >::capacity ( ) const
inline

Definition at line 302 of file vector.h.

◆ clear()

template<typename T >
void fl::HeapVector< T >::clear ( )
inline

Definition at line 322 of file vector.h.

◆ data() [1/2]

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

Definition at line 450 of file vector.h.

◆ data() [2/2]

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

Definition at line 454 of file vector.h.

◆ empty()

template<typename T >
bool fl::HeapVector< T >::empty ( ) const
inline

Definition at line 298 of file vector.h.

◆ end() [1/2]

template<typename T >
iterator fl::HeapVector< T >::end ( )
inline

Definition at line 331 of file vector.h.

◆ end() [2/2]

template<typename T >
const_iterator fl::HeapVector< T >::end ( ) const
inline

Definition at line 332 of file vector.h.

◆ ensure_size()

template<typename T >
void fl::HeapVector< T >::ensure_size ( size_t n)
inline

Definition at line 244 of file vector.h.

◆ erase() [1/2]

template<typename T >
void fl::HeapVector< T >::erase ( const T & value)
inline

Definition at line 400 of file vector.h.

◆ erase() [2/2]

template<typename T >
bool fl::HeapVector< T >::erase ( iterator pos,
T * out_value = nullptr )
inline

Definition at line 384 of file vector.h.

◆ find() [1/2]

template<typename T >
iterator fl::HeapVector< T >::find ( const T & value)
inline

Definition at line 352 of file vector.h.

◆ find() [2/2]

template<typename T >
const_iterator fl::HeapVector< T >::find ( const T & value) const
inline

Definition at line 361 of file vector.h.

◆ find_if()

template<typename T >
template<typename Predicate >
iterator fl::HeapVector< T >::find_if ( Predicate pred)
inline

Definition at line 371 of file vector.h.

◆ front() [1/2]

template<typename T >
T & fl::HeapVector< T >::front ( )
inline

Definition at line 335 of file vector.h.

◆ front() [2/2]

template<typename T >
const T & fl::HeapVector< T >::front ( ) const
inline

Definition at line 339 of file vector.h.

◆ full()

template<typename T >
bool fl::HeapVector< T >::full ( ) const
inline

Definition at line 420 of file vector.h.

◆ has()

template<typename T >
bool fl::HeapVector< T >::has ( const T & value) const
inline

Definition at line 380 of file vector.h.

◆ insert()

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

Definition at line 424 of file vector.h.

◆ operator=()

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

Definition at line 232 of file vector.h.

◆ operator[]() [1/2]

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

Definition at line 285 of file vector.h.

◆ operator[]() [2/2]

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

Definition at line 289 of file vector.h.

◆ pop_back()

template<typename T >
void fl::HeapVector< T >::pop_back ( )
inline

Definition at line 315 of file vector.h.

◆ push_back()

template<typename T >
void fl::HeapVector< T >::push_back ( const T & value)
inline

Definition at line 307 of file vector.h.

◆ reserve()

template<typename T >
void fl::HeapVector< T >::reserve ( size_t n)
inline

Definition at line 261 of file vector.h.

◆ resize() [1/2]

template<typename T >
void fl::HeapVector< T >::resize ( size_t n)
inline

Definition at line 267 of file vector.h.

◆ resize() [2/2]

template<typename T >
void fl::HeapVector< T >::resize ( size_t n,
const T & value )
inline

Definition at line 275 of file vector.h.

◆ size()

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

Definition at line 294 of file vector.h.

◆ swap() [1/2]

template<typename T >
void fl::HeapVector< T >::swap ( HeapVector< T > & other)
inline

Definition at line 407 of file vector.h.

◆ swap() [2/2]

template<typename T >
void fl::HeapVector< T >::swap ( iterator a,
iterator b )
inline

Definition at line 414 of file vector.h.


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