STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members | Public Member Functions | Public Types | Friends
stapl::detail::view_iterator< View > Class Template Reference

Definition of read only iterator used for the segmented_view View. More...

Public Member Functions

 view_iterator (View const &view, index_type const &index)
 Constructs an iterator over an element of the given view at position index.
 
 view_iterator (View *view, index_type const &index)
 Constructs an iterator over the given view at position index.
 
reference operator* (void) const
 
view_iteratoroperator= (view_iterator const &other)
 
index_type index (void) const
 
view_iteratoroperator++ (void)
 
view_iterator operator++ (int)
 
view_iteratoroperator-- (void)
 
view_iterator operator-- (int)
 
bool operator!= (view_iterator const &it) const
 
bool operator== (view_iterator const &it) const
 
template<typename Iterator >
bool operator< (Iterator const &it) const
 
view_iterator operator+ (long n) const
 
view_iterator operator- (long n) const
 
ptrdiff_t operator- (view_iterator const &other) const
 
 operator const_view_iterator< View > (void) const
 

Public Types

typedef view_iterator iterator
 
typedef std::forward_iterator_tag iterator_category
 
typedef view_traits< View >::value_type value_type
 
typedef view_traits< View >::reference reference
 
typedef ptrdiff_t difference_type
 
typedef value_type * pointer
 

Friends

bool operator< (view_iterator const &c, view_iterator const &d)
 

Detailed Description

template<typename View>
class stapl::detail::view_iterator< View >

Definition of read only iterator used for the segmented_view View.

The reference type associated with this iterator is a view over the view's container.

Member Function Documentation

◆ operator+()

template<typename View >
view_iterator stapl::detail::view_iterator< View >::operator+ ( long  n) const

◆ operator-()

template<typename View >
view_iterator stapl::detail::view_iterator< View >::operator- ( long  n) const

The documentation for this class was generated from the following file: