PackedList - activated lazy evaluation
- moving back to original flat addressing in iterators means there is no performance issue with using lazy evaluation - set() method now has ~0 for a default value. We can thus simply write 'set(i) to trun on all of the bits. This means we can use it just like labelHashSet::set(i) - added flip() method for inverting bits. I don't know where we might need it, but the STL has it so we might as well too.
Showing
- applications/test/PackedList/PackedListTest.C 45 additions, 12 deletionsapplications/test/PackedList/PackedListTest.C
- src/OpenFOAM/containers/Lists/PackedList/PackedList.C 32 additions, 19 deletionssrc/OpenFOAM/containers/Lists/PackedList/PackedList.C
- src/OpenFOAM/containers/Lists/PackedList/PackedList.H 43 additions, 50 deletionssrc/OpenFOAM/containers/Lists/PackedList/PackedList.H
- src/OpenFOAM/containers/Lists/PackedList/PackedListI.H 109 additions, 192 deletionssrc/OpenFOAM/containers/Lists/PackedList/PackedListI.H
Please register or sign in to comment