ENH: optionally eliminate duplicates on hashedWordList construction (issue #375)
- makes it easier to use as a wordHashSet replacement for situations where we want to avoid duplicates but retain the input order. - support construction from HashTable, which means it works like the HashTable::sortedToc but with its own hashing for these keys. - expose rehash() method for the user. There is normally no need for using it directly, but also no reason to lock it away as private.
Showing
- applications/test/HashSet/Test-hashSet.C 21 additions, 1 deletionapplications/test/HashSet/Test-hashSet.C
- applications/test/mesh/Test-mesh.C 0 additions, 1 deletionapplications/test/mesh/Test-mesh.C
- src/OpenFOAM/primitives/strings/lists/hashedWordList.C 41 additions, 100 deletionssrc/OpenFOAM/primitives/strings/lists/hashedWordList.C
- src/OpenFOAM/primitives/strings/lists/hashedWordList.H 65 additions, 33 deletionssrc/OpenFOAM/primitives/strings/lists/hashedWordList.H
- src/OpenFOAM/primitives/strings/lists/hashedWordListI.H 118 additions, 2 deletionssrc/OpenFOAM/primitives/strings/lists/hashedWordListI.H
Please register or sign in to comment