![]() |
Data Abstraction and Problem Solving with C++Walls and Mirrorsby Frank M. Carrano |
![]() |
KeyedItem.hGo to the documentation of this file.00001 00019 typedef desired-type-of-search-key KeyType; 00020 00021 class KeyedItem 00022 { 00023 public: 00024 KeyedItem() {} 00025 KeyedItem(const KeyType& keyValue) 00026 : searchKey(keyValue) {} 00027 KeyType getKey() const // returns search key 00028 { return searchKey; 00029 } // end getKey 00030 private: 00031 KeyType searchKey; 00032 }; // end KeyedItem |