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

Defines an accessor to local element using an iterator to reference it. More...

Public Member Functions

 pointer_accessor (Iterator iter)
 
bool is_local () const
 
template<typename F >
void apply_set (F const &f) const
 Applies the functor provided to the element reference by the iterator. More...
 
template<typename F >
F::result_type apply_get (F const &f) const
 Applies the functor provided to the element reference by the iterator. More...
 
value_type read (void) const
 
void write (U const &value) const
 
void invoke (void(Class::*const memberFuncPtr)(Args...), typename std::decay< Args >::type const &... args) const
 
Rtn invoke (Rtn(Class::*const memberFuncPtr)(Args...), typename std::decay< Args >::type const &... args) const
 
Rtn const_invoke (Rtn(Class::*const memberFuncPtr)(Args...) const, typename std::decay< Args >::type const &... args) const
 

Public Types

typedef std::iterator_traits< Iterator >::value_type value_type
 

Detailed Description

template<typename Iterator>
class stapl::detail::pointer_accessor< Iterator >

Defines an accessor to local element using an iterator to reference it.

Template Parameters
IteratorLocal iterator type.

Member Function Documentation

◆ apply_set()

template<typename Iterator >
template<typename F >
void stapl::detail::pointer_accessor< Iterator >::apply_set ( F const &  f) const

Applies the functor provided to the element reference by the iterator.

Warning
This method is only valid when the referenced element is local.

◆ apply_get()

template<typename Iterator >
template<typename F >
F::result_type stapl::detail::pointer_accessor< Iterator >::apply_get ( F const &  f) const

Applies the functor provided to the element reference by the iterator.

Warning
This method is only valid when the referenced element is local.

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