In file ../include/EST_TKVL.h:
template<class K, class V> class EST_TKVL |
Templated Key-Value list.
static V* | default_val default value, returned when there is no such entry |
static K* | default_key default value, returned when there is no such entry |
Constructor functions
| |||||||||||||||||||||||||||
const int | length () const number of key value pairs in list | ||||||||||||||||||||||||||
EST_Litem* | head () const Return First key value pair in list | ||||||||||||||||||||||||||
void | clear () Empty list | ||||||||||||||||||||||||||
Access functions.
| |||||||||||||||||||||||||||
const int | present (const K &rkey) const Returns true if key is present | ||||||||||||||||||||||||||
void | map (void (*func)(K&, V&)) apply function to each pair | ||||||||||||||||||||||||||
EST_TKVL<K, V> & | operator = (const EST_TKVL<K, V> &kv) full copy of KV list | ||||||||||||||||||||||||||
EST_TKVL<K, V> & | operator += (const EST_TKVL<K, V> &kv) add kv after existing list | ||||||||||||||||||||||||||
EST_TKVL<K, V> | operator + (const EST_TKVL<K, V> &kv) make new concatenated list |
Linked list of key-val pairs. |
Templated Key-Value list. Objects of type EST_TKVL contain lists which are accessed by a key of type K, which returns a value of type V.
Alphabetic index HTML hierarchy of classes or Java
This page is part of the
Edinburgh Speech Tools Library documentation
Copyright University of Edinburgh 1997
Contact:
speech_tools@cstr.ed.ac.uk