[vtk-developers] RFC: vtkScopedPointer - a new hope?

Marcus D. Hanwell marcus.hanwell at kitware.com
Wed Jan 26 09:40:40 EST 2011


I just merged the vtkNew topic branch. I will keep an eye on the
dashboards. Personally, I think it is a good addition but due to VTK's
API (largely passing pointers around as function arguments) I can see
some motivation (and precedent from vtkSmartPointer) for opening up
the API later. This is totally possible should there be motivation to
do so.

There are a few ideas I have to make it more useful in the future, but
I think even in its current form it should enable us to write more
concise, readable code. Let me know if there is anything I missed, I
am very tempted to add a Get() method that returns the pointer, in
addition to the more standard GetPointer() for example.

Thanks for all of the comments and feedback.

Marcus



More information about the vtk-developers mailing list