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