 
 
	 
In file ../include/EST_TKVL.h:
| template<class K, class V> class EST_TKVL | 
Templated Key-Value list.
| ![[more]](icon1.gif) static   V* | default_val default value, returned when there is no such entry | 
| ![[more]](icon1.gif) static   K* | default_key default value, returned when there is no such entry | 
| ![[more]](icon1.gif)  | Constructor functions 
 | ||||||||||||||||||||||||||
| ![[more]](icon1.gif) const int | length () const number of key value pairs in list | ||||||||||||||||||||||||||
| ![[more]](icon1.gif) EST_Litem* | head () const Return First key value pair in list | ||||||||||||||||||||||||||
| ![[more]](icon1.gif) void | clear () Empty list | ||||||||||||||||||||||||||
| ![[more]](icon1.gif)  | Access functions. 
 | ||||||||||||||||||||||||||
| ![[more]](icon1.gif) const int | present (const K &rkey) const Returns true if key is present | ||||||||||||||||||||||||||
| ![[more]](icon1.gif) void | map (void (*func)(K&, V&)) apply function to each pair | ||||||||||||||||||||||||||
| ![[more]](icon1.gif) EST_TKVL<K, V> & | operator =   (const EST_TKVL<K, V> &kv) full copy of KV list | ||||||||||||||||||||||||||
| ![[more]](icon1.gif) EST_TKVL<K, V> & | operator +=  (const EST_TKVL<K, V> &kv) add kv after existing list | ||||||||||||||||||||||||||
| ![[more]](icon1.gif) EST_TKVL<K, V> | operator +   (const EST_TKVL<K, V> &kv) make new concatenated list | 
| ![[more]](icon1.gif)  | 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.
 Constructor functions
 Constructor functions 
 static   V* default_val
static   V* default_val
 static   K* default_key
static   K* default_key
 Linked list of key-val pairs.
 Linked list of key-val pairs.
 const int length() const
const int length() const 
 EST_Litem* head() const
EST_Litem* head() const 
 void clear()
void clear()
 Access functions.
 Access functions.
 const V& val(const K &rkey, bool m=0) const
const V& val(const K &rkey, bool m=0) const 
 V& val(const K &rkey, bool m=0)
V& val(const K &rkey, bool m=0)
 const V& val(EST_Litem* ptr, bool m=0) const
const V& val(EST_Litem* ptr, bool m=0) const 
 V& val(EST_Litem* ptr, bool m=0)
V& val(EST_Litem* ptr, bool m=0)
 const V& val_def(const K &rkey, const V &def) const
const V& val_def(const K &rkey, const V &def) const 
 const K& key(EST_Litem* ptr, int m=1) const
const K& key(EST_Litem* ptr, int m=1) const 
 K& key(EST_Litem* ptr, int m=1)
K& key(EST_Litem* ptr, int m=1)
 const K& key(const V &v, int m=1) const
const K& key(const V &v, int m=1) const 
 int change_val(const K &rkey, const V &rval)
int change_val(const K &rkey, const V &rval)
 int change_val(EST_Litem* ptr, const V &rval)
int change_val(EST_Litem* ptr, const V &rval)
 int change_key(EST_Litem* ptr, const K &rkey)
int change_key(EST_Litem* ptr, const K &rkey)
 int add_item(const K &rkey, const V &rval, int no_search = 0)
int add_item(const K &rkey, const V &rval, int no_search = 0)
 int remove_item(const K &rkey, int quiet = 0)
int remove_item(const K &rkey, int quiet = 0)
 const int present(const K &rkey) const
const int present(const K &rkey) const 
 void map(void (*func)(K&, V&))
void map(void (*func)(K&, V&))
 EST_TKVL<K, V> & operator =  (const EST_TKVL<K, V> &kv)
EST_TKVL<K, V> & operator =  (const EST_TKVL<K, V> &kv)
 EST_TKVL<K, V> & operator += (const EST_TKVL<K, V> &kv)
EST_TKVL<K, V> & operator += (const EST_TKVL<K, V> &kv)
 EST_TKVL<K, V>  operator +  (const EST_TKVL<K, V> &kv)
EST_TKVL<K, V>  operator +  (const EST_TKVL<K, V> &kv)
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