d29c438657
STYLE: use url for FSF license instead of postal address, switch to GPL v3
2010-03-29 14:07:56 +02:00
5b628ebb31
HashSet - use AnyType, AnyHash templates as per HashTable
...
- this probably should have been in commit c7c9a6e0 (2009-11-04)
but got overseen in the HashTbl -> HashTable switch
2009-12-01 18:53:15 +01:00
a4f4a904f4
HashSet enhancement
...
- allow insert() and set() from a UList of Key
This complements the existing erase(const UList<Key>&) method
2009-12-01 18:26:18 +01:00
35c9d7bbd5
Corrected test applications.
2009-11-20 12:40:19 +00:00
e562aecb73
HashTable performance: find(), found() check nElmts_ instead of tableSize_
...
- much better performance on empty tables (4-6x speedup), neutral
performance change on filled tables. Since tableSize_ is non-zero when
nElmts_ is, there is no modulus zero problem.
2009-02-25 18:58:48 +01:00
c6e9b323f5
added HashSet::operator[]() const
...
- can use the same syntax for boolList, PackedBoolList and labelHashSet
if (myHashedSet[x]) ...
if (myBoolList[x]) ...
if (myPackedList[x]) ...
2009-01-27 21:55:03 +01:00
c2ac216eaf
HashTable::erase from list of keys or the keys from another HashTable
...
- the parameter HashTable can hold arbitrary data .. just the type of keys
needs to match
2009-01-11 20:01:53 +01:00
f0341171ff
renamed 'empty' class to 'nil', added missing empty() member to some containers
2009-01-09 13:10:10 +01:00
990a9e7f57
added HashTable::erase(const HashTable&) method
2009-01-09 09:35:53 +01:00
28b200bcd9
update copyrights for 2009
2008-12-31 19:01:56 +01:00
110e9989b9
further HashSet improvements
...
- added global operator|, operator& and operator^
- can construct from table of contents of another HashTable
2008-11-19 12:37:37 +01:00
1c9102dada
HashSet gets additional operators
...
- operator+= : add in the listed keys
- operator-= : remove the listed keys
- operator&= : intersection of keys
- added xfer constructor (just in case)
- moved labelHashSet typedef to HashSet.H, for consistency with the
wordHashSet typedef being there and since it is used so often
2008-11-18 23:11:09 +01:00
58fa3c4074
comparison operator
2008-09-10 12:51:43 +01:00