Commit 9656347a authored by T.J. Corona's avatar T.J. Corona Committed by Kitware Robot
Browse files

Merge topic 'periodic-data-array-iterator'

078f80b1

 vtkPeriodicDataArray can now return an iterator.
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Acked-by: Utkarsh Ayachit's avatarUtkarsh Ayachit <utkarsh.ayachit@kitware.com>
Acked-by: default avatarRobert Maynard <robert.maynard@kitware.com>
Reviewed-by: Utkarsh Ayachit's avatarUtkarsh Ayachit <utkarsh.ayachit@kitware.com>
Merge-request: !525
parents a423aea1 078f80b1
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
=========================================================================*/ =========================================================================*/
#include "vtkArrayIteratorTemplate.h"
#include "vtkIdList.h" #include "vtkIdList.h"
#include "vtkVariant.h" #include "vtkVariant.h"
...@@ -268,8 +269,10 @@ template <class Scalar> void vtkPeriodicDataArray<Scalar> ...@@ -268,8 +269,10 @@ template <class Scalar> void vtkPeriodicDataArray<Scalar>
template <class Scalar> vtkArrayIterator* template <class Scalar> vtkArrayIterator*
vtkPeriodicDataArray<Scalar>::NewIterator() vtkPeriodicDataArray<Scalar>::NewIterator()
{ {
vtkErrorMacro(<< "Not implemented."); vtkArrayIteratorTemplate<Scalar>* iter =
return NULL; vtkArrayIteratorTemplate<Scalar>::New();
iter->Initialize(this);
return iter;
} }
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment