Pico-Arduino
Classes | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
pico_arduino::Map< K, V > Class Template Reference

A simple key value map collection. More...

#include <Map.h>

Classes

struct  MapEntry
 Key/Value. More...
 

Public Member Functions

 Map (const V &empty)
 Construct a new Map object. More...
 
V & get (K key)
 Gets an element by key.
 
void put (K key, V value)
 Adds an element with a key.
 

Protected Member Functions

V & find_entry (K key)
 

Protected Attributes

Vector< MapEntry< K, V > > data
 
V * empty_ptr
 

Detailed Description

template<class K, class V>
class pico_arduino::Map< K, V >

A simple key value map collection.

Author
Phil Schatzmann

Constructor & Destructor Documentation

◆ Map()

template<class K , class V >
pico_arduino::Map< K, V >::Map ( const V &  empty)
inline

Construct a new Map object.

Parameters
emptyDefault value which is provided if the key does not exist

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