// Created by Frank M. Carrano and Tim Henry. // Copyright (c) 2013 __Pearson Education__. All rights reserved. /** A class of entry objects for an array-based implementation of the ADT dictionary. Listing 18-2. @file Entry.h */ #ifndef _ENTRY #define _ENTRY template class Entry { private: ItemType item; KeyType searchKey; protected: void setKey(const KeyType& searchKey); public: Entry(); Entry(ItemType newEntry, KeyType searchKey); ItemType getItem() const; KeyType getKey() const; void setItem(const ItemType& newEntry); bool operator==(const Entry& rightHandItem) const; bool operator>(const Entry& rightHandItem) const; }; // end Entry #include "Entry.cpp" #endif