ENH: new sliceRange class
- this is somewhat like labelRange, but with a stride. Can be used to define slices (of lists, fields, ..) or as a range specifier for a for-loop. For example, for (label i : sliceRange(0, 10, 3)) { ... }
Showing
- applications/test/sliceRange/Make/files 3 additions, 0 deletionsapplications/test/sliceRange/Make/files
- applications/test/sliceRange/Make/options 2 additions, 0 deletionsapplications/test/sliceRange/Make/options
- applications/test/sliceRange/Test-sliceRange.C 136 additions, 0 deletionsapplications/test/sliceRange/Test-sliceRange.C
- src/OpenFOAM/Make/files 1 addition, 0 deletionssrc/OpenFOAM/Make/files
- src/OpenFOAM/primitives/ranges/sliceRange/sliceRange.C 78 additions, 0 deletionssrc/OpenFOAM/primitives/ranges/sliceRange/sliceRange.C
- src/OpenFOAM/primitives/ranges/sliceRange/sliceRange.H 345 additions, 0 deletionssrc/OpenFOAM/primitives/ranges/sliceRange/sliceRange.H
- src/OpenFOAM/primitives/ranges/sliceRange/sliceRangeI.H 208 additions, 0 deletionssrc/OpenFOAM/primitives/ranges/sliceRange/sliceRangeI.H
Please register or sign in to comment