vtk-m2/vtkm/cont
Kenneth Moreland e612e423e5 Check for wide iterators in ArrayPortalFromIterators.
When compiling with 32-bit Ids for a 64 bit machine (which is not
uncommon), it is possible that the distance between two iterators
is larger than the maximum value that can be stored in vtkm::Id.
If two such iterators were passed to ArrayPortalFromIterators, that
would cause problems.

This change checks for that condition and throws an out of memory
exception if it occurs. That would be a pretty darn big array and
is more likely to be the cause of an error somewhere else in the
code, but either way the check and error is good. This change also
fixes a warning we have been getting with MSVC.
2014-09-12 09:51:07 -06:00
..
internal Check for wide iterators in ArrayPortalFromIterators. 2014-09-12 09:51:07 -06:00
testing Remove GetIteratorBegin/End from all ArrayPortal classes. 2014-09-08 14:59:11 -06:00
ArrayHandle.h Change ArrayContainerControl to Storage. 2014-06-24 09:58:32 -06:00
ArrayHandleCompositeVector.h Remove GetIteratorBegin/End from all ArrayPortal classes. 2014-09-08 14:59:11 -06:00
ArrayHandleCounting.h Remove GetIteratorBegin/End from all ArrayPortal classes. 2014-09-08 14:59:11 -06:00
ArrayHandleUniformPointCoordinates.h Remove GetIteratorBegin/End from all ArrayPortal classes. 2014-09-08 14:59:11 -06:00
ArrayPortal.h Remove GetIteratorBegin/End from all ArrayPortal classes. 2014-09-08 14:59:11 -06:00
ArrayPortalToIterators.h Add ArrayPortalToIterators functionality. 2014-09-08 13:39:58 -06:00
Assert.h Make sure all header wrapper macros start with vtk_m_ rather than vtkm_ 2014-06-11 10:43:36 -06:00
CMakeLists.txt Add ArrayPortalToIterators functionality. 2014-09-08 13:39:58 -06:00
DeviceAdapter.h Make sure all header wrapper macros start with vtk_m_ rather than vtkm_ 2014-06-11 10:43:36 -06:00
DeviceAdapterSerial.h Make sure all header wrapper macros start with vtk_m_ rather than vtkm_ 2014-06-11 10:43:36 -06:00
DynamicArrayHandle.h Change ArrayContainerControl to Storage. 2014-06-24 09:58:32 -06:00
DynamicPointCoordinates.h Change ArrayContainerControl to Storage. 2014-06-24 09:58:32 -06:00
Error.h Make sure all header wrapper macros start with vtk_m_ rather than vtkm_ 2014-06-11 10:43:36 -06:00
ErrorControl.h Make sure all header wrapper macros start with vtk_m_ rather than vtkm_ 2014-06-11 10:43:36 -06:00
ErrorControlAssert.h Make sure all header wrapper macros start with vtk_m_ rather than vtkm_ 2014-06-11 10:43:36 -06:00
ErrorControlBadValue.h Make sure all header wrapper macros start with vtk_m_ rather than vtkm_ 2014-06-11 10:43:36 -06:00
ErrorControlInternal.h Make sure all header wrapper macros start with vtk_m_ rather than vtkm_ 2014-06-11 10:43:36 -06:00
ErrorControlOutOfMemory.h Make sure all header wrapper macros start with vtk_m_ rather than vtkm_ 2014-06-11 10:43:36 -06:00
ErrorExecution.h Make sure all header wrapper macros start with vtk_m_ rather than vtkm_ 2014-06-11 10:43:36 -06:00
PointCoordinatesArray.h Change ArrayContainerControl to Storage. 2014-06-24 09:58:32 -06:00
PointCoordinatesListTag.h Add classes to manage point coordinates. 2014-05-15 13:41:45 -06:00
PointCoordinatesUniform.h Change ArrayContainerControl to Storage. 2014-06-24 09:58:32 -06:00
Storage.h Remove GetIteratorBegin/End from all ArrayPortal classes. 2014-09-08 14:59:11 -06:00
StorageBasic.h Change ArrayContainerControl to Storage. 2014-06-24 09:58:32 -06:00
StorageImplicit.h Change ArrayContainerControl to Storage. 2014-06-24 09:58:32 -06:00
StorageListTag.h Change ArrayContainerControl to Storage. 2014-06-24 09:58:32 -06:00
Timer.h Add Timer class. 2014-06-10 12:54:18 -06:00