VTK-m
2.1
|
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 | |
ArrayPortalToIterators (const PortalType &portal) | |
ArrayPortaltoIterators should be constructed with an instance of the array portal. More... | |
ArrayPortalToIterators (const ArrayPortalToIterators &src) | |
ArrayPortalToIterators (ArrayPortalToIterators &&rhs) | |
~ArrayPortalToIterators () | |
ArrayPortalToIterators & | operator= (const ArrayPortalToIterators &src) |
ArrayPortalToIterators & | operator= (ArrayPortalToIterators &&rhs) |
IteratorType | GetBegin () const |
Returns an iterator pointing to the beginning of the ArrayPortal. More... | |
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 |