|
ESPHome 2025.12.0-dev
|
#include <mapping.h>
Public Types | |
| using | key_t |
| using | value_t |
Public Member Functions | |
| Mapping ()=default | |
| void | set (const K &key, const V &value) |
| V | get (const K &key) const |
| V | operator[] (K key) |
| template<typename T = V, std::enable_if_t< std::is_same_v< T, std::string >, int > = 0> | |
| const char * | operator[] (K key) const |
Protected Attributes | |
| std::map< key_t, value_t, std::less< key_t >, RAMAllocator< std::pair< key_t, value_t > > > | map_ |
| using esphome::mapping::Mapping< K, V >::key_t |
| using esphome::mapping::Mapping< K, V >::value_t |
|
default |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |