#ifndef _BSPTREE_DICTIONARY_HPP_ #error DICTIONARY.HPP must precede DICTIONARY.TPP #endif template inline Dictionary::Dictionary(void) { } template inline Dictionary::Dictionary(const Dictionary& someDictionary) { throw; } template inline Dictionary::~Dictionary() { } template inline bool Dictionary::containsKey(const TKey& key) { ItemEntry item(key); return data.find(item); } template inline bool Dictionary::insert(const TKey& key, const TValue& value) { ItemEntry item(key, value); if (data.find(item))throw; data.insert(item); return true; } template inline Block Dictionary::getValues(void)const { Block> items = Block>(); Block values = Block(); data.treeItems(items); for (int index = 0;index < items.size();index++) { values.insert(&items[index].getValue()); } return values; } template inline Block Dictionary::getKeys(void)const { Block> items = Block>(); Block keys = Block(); data.treeItems(items); for (int index = 0;index < items.size();index++) { keys.insert(&items[index].getKey()); } return keys; } template inline TValue Dictionary::operator[](const TKey& key) { ItemEntry item(key); if (!data.find(item))throw; return item.getValue(); } #pragma once