HashTbl changes
- iterators store pointers instead of references to the HashTbl. This lets us use the default bitwise copy/assignment - add empty constructor for iterators. It returns the equivalent to end(). This lets us do this: HashTbl<label>::iterator iter; // some time later iter = find(Value); - erase(const HashTbl<AnyType, Key, AnyHash>&) is now more generous. Only the Key type matters, not the hashing function.
Showing
- applications/test/HashTable/hashTableTest.C 6 additions, 1 deletionapplications/test/HashTable/hashTableTest.C
- src/OpenFOAM/containers/HashTables/HashTbl/HashTbl.C 15 additions, 15 deletionssrc/OpenFOAM/containers/HashTables/HashTbl/HashTbl.C
- src/OpenFOAM/containers/HashTables/HashTbl/HashTbl.H 51 additions, 31 deletionssrc/OpenFOAM/containers/HashTables/HashTbl/HashTbl.H
- src/OpenFOAM/containers/HashTables/HashTbl/HashTblI.H 36 additions, 40 deletionssrc/OpenFOAM/containers/HashTables/HashTbl/HashTblI.H
- src/OpenFOAM/containers/HashTables/HashTbl/HashTblIO.C 2 additions, 2 deletionssrc/OpenFOAM/containers/HashTables/HashTbl/HashTblIO.C
Please register or sign in to comment