Sming Framework API
Sming - Open Source framework for high efficiency WiFi SoC ESP8266 native development with C++ language.
HashMap< K, V > Class Template Reference

Public Types

typedef bool(* comparator) (const K &, const K &)
 

Public Member Functions

 HashMap (comparator compare)
 
unsigned int count () const
 
const K & keyAt (unsigned int idx) const
 
K & keyAt (unsigned int idx)
 
const V & valueAt (unsigned int idx) const
 
V & valueAt (unsigned int idx)
 
const V & operator[] (const K &key) const
 
V & operator[] (const K &key)
 
void allocate (unsigned int newSize)
 
int indexOf (const K &key) const
 
bool contains (const K &key) const
 
void removeAt (unsigned index)
 
void remove (const K &key)
 
void clear ()
 
void setMultiple (const HashMap< K, V > &map)
 
void setNullValue (const V &nullv)
 

Protected Attributes

K ** keys = nullptr
 
V ** values = nullptr
 
nil
 
uint16_t currentIndex = 0
 
uint16_t size = 0
 
comparator cb_comparator = nullptr