45#include "EST_String.h"
63lengths.add_item(
"fred", 4);
64lengths.add_item(
"bill", 4);
65lengths.add_item(
"harry", 5);
74logs.add_item(12, log(12.0));
75logs.add_item(34, log(34.0));
77cout <<
"length of `fred' = " << lengths.val(
"fred") <<
"\n";
78cout <<
"log of 34' = " << logs.val(34) <<
"\n";
84cout <<
"now don't know log of 34' = " << logs.val(34) <<
"\n";
92float val = logs.val(123, found);
116 for(them.
begin(const_lengths); them; them++)
118 cout << them->k <<
" " << them->v <<
" ";
123 EST_THash<EST_String, int>::RwEntries rwthem;
125 for(rwthem.
begin(lengths); rwthem; rwthem++)
128 cout << rwthem->k <<
" " << rwthem->v <<
" ";
138template <>
int EST_THash<int, float>::Dummy_Key = 0;
139template <>
float EST_THash<int, float>::Dummy_Value = 0.0;
141#if defined(INSTANTIATE_TEMPLATES)
142#include "../base_class/EST_THash.cc"
144Instantiate_THash(
int,
float)
EST_TStructIterator< EST_THash< K, V >, IPointer, EST_Hash_Pair< K, V > > Entries
Give the iterator a sensible name.
void begin(const Container &over)
Set the iterator ready to run over this container.
void begin(Container &over)
Set the iterator ready to run over this container.