PackedList improvements
- dropped auto-vivification for now (performance issue), but reworked to allow easy reinstatement - derived both iterator and const_iterator from iteratorBase and use iteratorBase as our proxy for non-const access to the list elements. This allows properly chaining assignments: list[1] = list[2]; list[1] = list[2] = 10; - assigning iterators from iteratorBase or other iterators works: iterator iter = list[20]; - made template parameter nBits=1 the default
Showing
- applications/test/PackedList/PackedListTest.C 38 additions, 18 deletionsapplications/test/PackedList/PackedListTest.C
- applications/test/PackedList2/PackedListTest2.C 24 additions, 40 deletionsapplications/test/PackedList2/PackedListTest2.C
- src/OpenFOAM/containers/Lists/PackedList/PackedList.C 8 additions, 8 deletionssrc/OpenFOAM/containers/Lists/PackedList/PackedList.C
- src/OpenFOAM/containers/Lists/PackedList/PackedList.H 165 additions, 99 deletionssrc/OpenFOAM/containers/Lists/PackedList/PackedList.H
- src/OpenFOAM/containers/Lists/PackedList/PackedListI.H 274 additions, 132 deletionssrc/OpenFOAM/containers/Lists/PackedList/PackedListI.H
- src/OpenFOAM/primitives/Lists/PackedBoolList.H 1 addition, 1 deletionsrc/OpenFOAM/primitives/Lists/PackedBoolList.H
Please register or sign in to comment