00001 00029 #ifndef ABA_DICTIONARY_INC 00030 #define ABA_DICTIONARY_INC 00031 00032 template <class KeyType, class ItemType> 00033 ABA_DICTIONARY<KeyType, ItemType>::ABA_DICTIONARY(ABA_GLOBAL *glob, int size) 00034 : 00035 glob_(glob), 00036 hash_(glob, size) 00037 { } 00038 00039 template <class KeyType, class ItemType> 00040 ostream &operator<<(ostream &out, const ABA_DICTIONARY<KeyType, ItemType> &rhs) 00041 { 00042 return out << rhs.hash_; 00043 } 00044 00045 template <class KeyType, class ItemType> 00046 inline void ABA_DICTIONARY<KeyType, ItemType>::insert(const KeyType &key, 00047 const ItemType &item) 00048 { 00049 hash_.insert(key, item); 00050 } 00051 00052 template <class KeyType, class ItemType> 00053 inline ItemType* ABA_DICTIONARY<KeyType, ItemType>::lookUp(const KeyType &key) 00054 { 00055 return hash_.find(key); 00056 } 00057 00058 #endif // ABA_DICTIONARY_INC