1: // Created by Frank M. Carrano and Tim Henry.
2: // Copyright (c) 2013 __Pearson Education__. All rights reserved.
4: /** @file TreeDictionary.cpp */
6: #include "TreeDictionary.h"
9: template <class KeyType, class ItemType>
10: bool TreeDictionary<KeyType, ItemType>::add(const KeyType& searchKey,
11: const ItemType& newItem)
12: {
13: return itemTree.add(Entry<KeyType, ItemType>(newItem, searchKey));
14: } // end add
16: template <class KeyType, class ItemType>
17: bool TreeDictionary<KeyType, ItemType>::remove(const const KeyType& itemKey)
18: {
19: return itemTree.remove(Entry<KeyType, ItemType>(ItemType(), itemKey));
20: } // end remove