[Ohrrpgce] SVN: teeemcee/10903 Add generic HashTable class, replacing old hash table functions

subversion at HamsterRepublic.com subversion at HamsterRepublic.com
Thu Jan 10 19:02:24 PST 2019


teeemcee
2019-01-10 19:02:24 -0800 (Thu, 10 Jan 2019)
600
Add generic HashTable class, replacing old hash table functions

The previous hash table implementation was 'intrusive' (required adding
a HashedItem member to any object stored in a hash table), hence objects could
only stored in a single table at a time, and it couldn't store primitive types
like strings without creating wrapper UDTs.
The new HashTable is a key -> value multimap, like in most languages.
It's generic: it knows what its key and value types are, so can call appropriate
functions to hash, compare, copy, and delete.
Has various new methods vs the old functions.
And testcases too.
---
U   wip/allmodex.bas
U   wip/loading.rbas
U   wip/udts.bi
U   wip/util.bas
U   wip/util.bi
U   wip/vector.bas
U   wip/vector.bi
U   wip/vectortest.bas


More information about the Ohrrpgce mailing list