FastLED 3.9.3
Loading...
Searching...
No Matches
FixedSet< Key, N > Class Template Reference

Detailed Description

template<typename Key, size_t N>
class FixedSet< Key, N >

Definition at line 17 of file fixed_set.h.

Public Types

typedef FixedVector< Key, N > VectorType
 
typedef VectorType::iterator iterator
 
typedef VectorType::const_iterator const_iterator
 

Public Member Functions

iterator begin ()
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 
iterator find (const Key &key)
 
const_iterator find (const Key &key) const
 
bool insert (const Key &key)
 
bool erase (const Key &key)
 
bool erase (iterator pos)
 
bool next (const Key &key, Key *next_key, bool allow_rollover=false) const
 
bool prev (const Key &key, Key *prev_key, bool allow_rollover=false) const
 
constexpr size_t size () const
 
constexpr bool empty () const
 
constexpr size_t capacity () const
 
void clear ()
 
bool has (const Key &key) const
 
const Key & front () const
 
const Key & back () const
 

Member Typedef Documentation

◆ const_iterator

template<typename Key , size_t N>
typedef VectorType::const_iterator FixedSet< Key, N >::const_iterator

Definition at line 21 of file fixed_set.h.

◆ iterator

template<typename Key , size_t N>
typedef VectorType::iterator FixedSet< Key, N >::iterator

Definition at line 20 of file fixed_set.h.

◆ VectorType

template<typename Key , size_t N>
typedef FixedVector<Key, N> FixedSet< Key, N >::VectorType

Definition at line 19 of file fixed_set.h.

Member Function Documentation

◆ back()

template<typename Key , size_t N>
const Key & FixedSet< Key, N >::back ( ) const
inline

Definition at line 144 of file fixed_set.h.

◆ begin() [1/2]

template<typename Key , size_t N>
iterator FixedSet< Key, N >::begin ( )
inline

Definition at line 26 of file fixed_set.h.

◆ begin() [2/2]

template<typename Key , size_t N>
const_iterator FixedSet< Key, N >::begin ( ) const
inline

Definition at line 32 of file fixed_set.h.

◆ capacity()

template<typename Key , size_t N>
size_t FixedSet< Key, N >::capacity ( ) const
inlineconstexpr

Definition at line 125 of file fixed_set.h.

◆ clear()

template<typename Key , size_t N>
void FixedSet< Key, N >::clear ( )
inline

Definition at line 130 of file fixed_set.h.

◆ empty()

template<typename Key , size_t N>
bool FixedSet< Key, N >::empty ( ) const
inlineconstexpr

Definition at line 120 of file fixed_set.h.

◆ end() [1/2]

template<typename Key , size_t N>
iterator FixedSet< Key, N >::end ( )
inline

Definition at line 29 of file fixed_set.h.

◆ end() [2/2]

template<typename Key , size_t N>
const_iterator FixedSet< Key, N >::end ( ) const
inline

Definition at line 35 of file fixed_set.h.

◆ erase() [1/2]

template<typename Key , size_t N>
bool FixedSet< Key, N >::erase ( const Key & key)
inline

Definition at line 68 of file fixed_set.h.

◆ erase() [2/2]

template<typename Key , size_t N>
bool FixedSet< Key, N >::erase ( iterator pos)
inline

Definition at line 77 of file fixed_set.h.

◆ find() [1/2]

template<typename Key , size_t N>
iterator FixedSet< Key, N >::find ( const Key & key)
inline

Definition at line 39 of file fixed_set.h.

◆ find() [2/2]

template<typename Key , size_t N>
const_iterator FixedSet< Key, N >::find ( const Key & key) const
inline

Definition at line 48 of file fixed_set.h.

◆ front()

template<typename Key , size_t N>
const Key & FixedSet< Key, N >::front ( ) const
inline

Definition at line 139 of file fixed_set.h.

◆ has()

template<typename Key , size_t N>
bool FixedSet< Key, N >::has ( const Key & key) const
inline

Definition at line 134 of file fixed_set.h.

◆ insert()

template<typename Key , size_t N>
bool FixedSet< Key, N >::insert ( const Key & key)
inline

Definition at line 57 of file fixed_set.h.

◆ next()

template<typename Key , size_t N>
bool FixedSet< Key, N >::next ( const Key & key,
Key * next_key,
bool allow_rollover = false ) const
inline

Definition at line 85 of file fixed_set.h.

◆ prev()

template<typename Key , size_t N>
bool FixedSet< Key, N >::prev ( const Key & key,
Key * prev_key,
bool allow_rollover = false ) const
inline

Definition at line 100 of file fixed_set.h.

◆ size()

template<typename Key , size_t N>
size_t FixedSet< Key, N >::size ( ) const
inlineconstexpr

Definition at line 116 of file fixed_set.h.


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