Sming Framework API
Sming - Open Source framework for high efficiency WiFi SoC ESP8266 native development with C++ language.
TemplateVariables Class Reference

Template variable (hash map) class. More...

#include <TemplateStream.h>

Inheritance diagram for TemplateVariables:
HashMap< String, String >

Public Types

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

Public Member Functions

unsigned int count () const
 
const StringkeyAt (unsigned int idx) const
 
StringkeyAt (unsigned int idx)
 
const StringvalueAt (unsigned int idx) const
 
StringvalueAt (unsigned int idx)
 
const Stringoperator[] (const String &key) const
 
Stringoperator[] (const String &key)
 
void allocate (unsigned int newSize)
 
int indexOf (const String &key) const
 
bool contains (const String &key) const
 
void removeAt (unsigned index)
 
void remove (const String &key)
 
void clear ()
 
void setMultiple (const HashMap< String, String > &map)
 
void setNullValue (const String &nullv)
 

Protected Attributes

String ** keys
 
String ** values
 
String nil
 
uint16_t currentIndex
 
uint16_t size
 
comparator cb_comparator
 

Detailed Description

Template variable (hash map) class.

See also
Wiring HashMap