fueanta

HashTable :: Item.h

May 17th, 2017
126
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //
  2. // Created by Taqui on 5/13/2017.
  3. //
  4.  
  5. #include <iostream>
  6. #include <cstdlib>
  7. #include <string>
  8.  
  9. using namespace std;
  10.  
  11. #ifndef HASH_TABLE_PROJECT_ITEM_H
  12. #define HASH_TABLE_PROJECT_ITEM_H
  13.  
  14. class Item
  15. {
  16. private:
  17.     string name;
  18.     string phoneNumber;
  19.     int indexNo;
  20. public:
  21.     // pointer to next item
  22.     Item *next;
  23.  
  24.     // constructors
  25.     Item();
  26.  
  27.     Item(const string &name, const string &phoneNumber);
  28.  
  29.     // setter getters
  30.     const string &getName() const;
  31.  
  32.     void setName(const string &);
  33.  
  34.     const string &getPhoneNumber() const;
  35.  
  36.     void setPhoneNumber(const string &);
  37.  
  38.     int getIndexNo() const;
  39.  
  40.     void setIndexNo(int indexNo);
  41.  
  42.     // show function
  43.     void show();
  44. };
  45.  
  46. #endif //HASH_TABLE_PROJECT_ITEM_H
RAW Paste Data