Homework/HW05/HashTable.cc
bool HashTable::access(WordCounter &wordc, string s)
{
    //Determine whether the string has been used as a key and if it has, find() copies the found
    //object into wordc and returns true, otherwise it returns false.  The find() returned value is
    //passed on as this function's return value as well.
    return find(wordc, s, hashing(s));
}
/****************************** access *************************************************************
Action:         Attempts to get the requested string from the hash table. Gets the hash index for
                the string then finds out if the string has been used as a key to insert an object
                in the list at that index.  If yes, the list object is copied into the wordc object
                and true is returned.  If not, false is returned.

Parameters:
IN:             string s, the string that is requested from the hash table.
OUT:            WordCounter &wordc, will hold the found object (if any).

Returns:        bool, representing whether the requested string was found (true) or not (false).

Precondition:   None
***************************************************************************************************/
access
Action:         Attempts to get the requested string from the hash table. Gets the hash index for
the string then finds out if the string has been used as a key to insert an object
in the list at that index.  If yes, the list object is copied into the wordc object
and true is returned.  If not, false is returned.

string s, the string that is requested from the hash table.
OUT:            WordCounter &wordc, will hold the found object (if any).

bool, representing whether the requested string was found (true) or not (false).

None
access Action : Attempts to get the requested string from the hash table . Gets the hash index for the string then finds out if the string has been used as a key to insert an object in the list at that index . If yes the list object is copied into the wordc object and true is returned . If not false is returned . string s the string that is requested from the hash table . OUT : WordCounter &wordc will hold the found object ( if any ) . bool representing whether the requested string was found ( true ) or not ( false ) . None
bool HashTable::access(WordCounter &wordc, string s)
{
    return find(wordc, s, hashing(s));
}
bool HashTable :: access ( WordCounter & wordc , string s ) { return find ( wordc , s , hashing ( s ) ) ; }
access
Action:         Attempts to get the requested string from the hash table.
access Action : Attempts to get the requested string from the hash table .
//Determine whether the string has been used as a key and if it has, find() copies the found //object into wordc and returns true, otherwise it returns false.  The find() returned value is //passed on as this function's return value as well.