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) (K, K)
 

Public Member Functions

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

Protected Attributes

K ** keys
 
V ** values
 
nil
 
int16_t currentIndex
 
int16_t size
 
comparator cb_comparator