VTK-m
2.0
|
Convert an ArrayPortal
to STL iterators.
More...
#include <ArrayPortalToIterators.h>
Public Types | |
using | IteratorType = vtkm::cont::internal::IteratorFromArrayPortal< PortalType > |
The type of the iterator. More... | |
Public Member Functions | |
VTKM_SUPPRESS_EXEC_WARNINGS VTKM_EXEC_CONT | ArrayPortalToIterators (const PortalType &portal) |
ArrayPortaltoIterators should be constructed with an instance of the array portal. More... | |
VTKM_SUPPRESS_EXEC_WARNINGS VTKM_EXEC_CONT | ArrayPortalToIterators (const ArrayPortalToIterators &src) |
VTKM_SUPPRESS_EXEC_WARNINGS VTKM_EXEC_CONT | ArrayPortalToIterators (ArrayPortalToIterators &&rhs) |
VTKM_SUPPRESS_EXEC_WARNINGS VTKM_EXEC_CONT | ~ArrayPortalToIterators () |
VTKM_SUPPRESS_EXEC_WARNINGS VTKM_EXEC_CONT ArrayPortalToIterators & | operator= (const ArrayPortalToIterators &src) |
VTKM_SUPPRESS_EXEC_WARNINGS VTKM_EXEC_CONT ArrayPortalToIterators & | operator= (ArrayPortalToIterators &&rhs) |
VTKM_SUPPRESS_EXEC_WARNINGS VTKM_EXEC_CONT IteratorType | GetBegin () const |
Returns an iterator pointing to the beginning of the ArrayPortal. More... | |
VTKM_SUPPRESS_EXEC_WARNINGS VTKM_EXEC_CONT IteratorType | GetEnd () const |
Returns an iterator pointing to one past the end of the ArrayPortal. More... | |
Private Attributes | |
PortalType | Portal |
Convert an ArrayPortal
to STL iterators.
ArrayPortalToIterators
is a class that holds an ArrayPortal
and builds iterators that access the data in the ArrayPortal
. The point of this class is to use an ArrayPortal
with generic functions that expect STL iterators such as STL algorithms or Thrust operations.
The default template implementation constructs iterators that provide values through the ArrayPortal
itself. However, if the ArrayPortal
contains its own iterators (by defining GetIteratorBegin
and GetIteratorEnd
), then those iterators are used.
using vtkm::cont::ArrayPortalToIterators< PortalType, std::false_type >::IteratorType = vtkm::cont::internal::IteratorFromArrayPortal<PortalType> |
The type of the iterator.
|
inlineexplicit |
ArrayPortaltoIterators
should be constructed with an instance of the array portal.
|
inline |
|
inline |
|
inline |
|
inline |
Returns an iterator pointing to the beginning of the ArrayPortal.
|
inline |
Returns an iterator pointing to one past the end of the ArrayPortal.
|
inline |
|
inline |
|
private |