![]() |
Data Abstraction and Problem Solving with C++Walls and Mirrorsby Frank M. Carrano |
![]() |
KeyedItem.hGo to the documentation of this file.00001 00018 #include <string> 00019 00020 using namespace std; 00021 00022 typedef string KeyType; 00023 00024 class KeyedItem 00025 { 00026 public: 00027 KeyedItem() {} 00028 KeyedItem(const KeyType& keyValue) 00029 : searchKey(keyValue) {} 00030 KeyType getKey() const 00031 { return searchKey; 00032 } // end getKey 00033 private: 00034 KeyType searchKey; 00035 }; // end KeyedItem |