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

Iterator that is used to locally traverse a base container. More...

Public Member Functions

 local_iterator ()
 Create an invalid iterator.
 
 local_iterator (base_iter_t const &iter, C *cont)
 Create a local iterator over a given container starting at a given base container iterator. More...
 
base_iter_t operator-> ()
 Standard operator->() for iterators that returns a pointer to the iterated value.
 
base_iter_t operator-> () const
 Standard operator->() for iterators that returns a pointer to the iterated value.
 
base_iter_t base_iterator () const
 
Derived & derived ()
 
Derived const & derived () const
 
reference operator* () const
 
reference operator[] (int n) const
 
Derived & operator++ ()
 
Derived operator++ (int)
 
Derived & operator-- ()
 
Derived operator-- (int)
 
Derived & operator+= (difference_type n)
 
Derived & operator-= (difference_type n)
 
bool less_than (iterator_facade const &rhs) const
 

Public Types

typedef Category iterator_category
 
typedef std::remove_const< typename Accessor::value_type >::type value_type
 
typedef Difference difference_type
 
typedef stub< value_type, Accessor > pointer
 
typedef referencer_t::result_type reference
 

Friends

class iterator_core_access
 

Detailed Description

template<typename C, typename A = use_default>
class stapl::local_iterator< C, A >

Iterator that is used to locally traverse a base container.

Template Parameters
ContainerType of the base container
AccessorAccessor type used for references (proxies). By default, local_accessor will be chosen.
See also
proxy

Constructor & Destructor Documentation

◆ local_iterator()

template<typename C , typename A = use_default>
stapl::local_iterator< C, A >::local_iterator ( base_iter_t const &  iter,
C *  cont 
)

Create a local iterator over a given container starting at a given base container iterator.

Parameters
iterIterator from the base container to the element
contPointer to the container

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