[vtk-developers] RFC: STL algos and C++11 for-range syntax with vtkDataArrays

Elvis Stansvik elvis.stansvik at orexplore.com
Fri Nov 9 02:07:38 EST 2018


Den tors 8 nov. 2018 kl 23:21 skrev Allie Vacanti <allison.vacanti at kitware.com>:
>
> Hi folks,
>
> I've written a set of STL-compatible utilities that allow vtkDataArrays to be efficiently used with STL algorithms as well as with C++11 for-range syntax. This consists of TupleRanges, which iterate through an array tuple-by-tuple and component-by-component, and ValueRanges, which iterate element-by-element using AOS-ordering.
>
> I've linked a blog post describing them in more detail, and a merge request available to play with / review / nitpick for anyone interested in doing so =)
>
> https://blog.kitware.com/c11-for-range-support-in-vtk/
> https://gitlab.kitware.com/vtk/vtk/merge_requests/4826
>

This is awesome Allie.

Any plans for something similar for vtkCollection*?

Elvis

> Allie
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Search the list archives at: http://markmail.org/search/?q=vtk-developers
>
> Follow this link to subscribe/unsubscribe:
> https://public.kitware.com/mailman/listinfo/vtk-developers
>


More information about the vtk-developers mailing list