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

Detailed Description

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

Definition at line 17 of file 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 Keyfront () const
 
const Keyback () const
 

Member Typedef Documentation

◆ const_iterator

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

Definition at line 21 of file set.h.

◆ iterator

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

Definition at line 20 of file set.h.

◆ VectorType

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

Definition at line 19 of file set.h.

Member Function Documentation

◆ back()

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

Definition at line 144 of file set.h.

◆ begin() [1/2]

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

Definition at line 26 of file set.h.

◆ begin() [2/2]

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

Definition at line 32 of file set.h.

◆ capacity()

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

Definition at line 125 of file set.h.

◆ clear()

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

Definition at line 130 of file set.h.

◆ empty()

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

Definition at line 120 of file set.h.

◆ end() [1/2]

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

Definition at line 29 of file set.h.

◆ end() [2/2]

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

Definition at line 35 of file set.h.

◆ erase() [1/2]

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

Definition at line 68 of file set.h.

◆ erase() [2/2]

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

Definition at line 77 of file set.h.

◆ find() [1/2]

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

Definition at line 39 of file set.h.

◆ find() [2/2]

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

Definition at line 48 of file set.h.

◆ front()

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

Definition at line 139 of file set.h.

◆ has()

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

Definition at line 134 of file set.h.

◆ insert()

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

Definition at line 57 of file set.h.

◆ next()

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

Definition at line 85 of file set.h.

◆ prev()

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

Definition at line 100 of file set.h.

◆ size()

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

Definition at line 116 of file set.h.


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