AlejandroLoutphi / MetroMendeleyLoutphiRuizZaherAlDeen

0 stars 0 forks source link

Create Generic Hash Table Class #1

Closed AlejandroLoutphi closed 3 months ago

AlejandroLoutphi commented 3 months ago

We can add more methods later

This class will be used for both the hash table storing the abstracts themselves, as well as a hash table storing Keywords

AlejandroLoutphi commented 3 months ago

OK, so it technically works now in 1-hash-table branch, but I'd like to redo some things

You can iterate over the table by using the getTableArray() method and just iterating as if it was an array right now, but I kinda want to redesign the hashTable class to use inheritance instead to reduce the amount of pointers we have to access

Things to do:

AlejandroLoutphi commented 3 months ago

We might also want to get rid of Box<E>, since GenericArray<E> is a superior implementation of Generic Arrays compared to Box<E>[] in every way