FastLED 3.9.15
Loading...
Searching...
No Matches
fl::FixedMap< Key, Value, N > Class Template Reference

Detailed Description

template<typename Key, typename Value, size_t N>
class fl::FixedMap< Key, Value, N >

Definition at line 29 of file map.h.

#include <map.h>

+ Inheritance diagram for fl::FixedMap< Key, Value, N >:
+ Collaboration diagram for fl::FixedMap< Key, Value, N >:

Public Types

typedef VectorType::const_iterator const_iterator
 
typedef VectorType::iterator iterator
 
using PairKV = fl::Pair<Key, Value>
 
typedef FixedVector< PairKV, N > VectorType
 

Public Member Functions

constexpr FixedMap ()=default
 
iterator begin ()
 
const_iterator begin () const
 
constexpr size_t capacity () const
 
void clear ()
 
bool contains (const Key &key) const
 
constexpr bool empty () const
 
iterator end ()
 
const_iterator end () const
 
iterator find (const Key &key)
 
const_iterator find (const Key &key) const
 
Value get (const Key &key, bool *has=nullptr) const
 
bool get (const Key &key, Value *value) const
 
bool has (const Key &it) const
 
template<typename Less>
iterator highest (Less less_than=Less())
 
template<typename Less>
const_iterator highest (Less less_than=Less()) const
 
Pair< bool, iteratorinsert (const Key &key, const Value &value, InsertResult *result=nullptr)
 
template<typename Less>
iterator lowest (Less less_than=Less())
 
template<typename Less>
const_iterator lowest (Less less_than=Less()) const
 
bool next (const Key &key, Key *next_key, bool allow_rollover=false) const
 
Value & operator[] (const Key &key)
 
const Value & operator[] (const Key &key) const
 
bool prev (const Key &key, Key *prev_key, bool allow_rollover=false) const
 
constexpr size_t size () const
 
bool update (const Key &key, const Value &value, bool insert_if_missing=true)
 

Private Attributes

VectorType data
 

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