|
| LocalArrayRef (const Array_t *array) |
| Constructor, creates a local access proxy for the given array. More...
|
|
| LocalArrayRef (const Array_t *array, const ViewSpec_t &viewspec) |
|
| LocalArrayRef (const self_t &)=default |
|
| LocalArrayRef (self_t &&)=default |
|
self_t & | operator= (const self_t &)=default |
|
self_t & | operator= (self_t &&)=default |
|
constexpr const_iterator | begin () const noexcept |
| Pointer to initial local element in the array. More...
|
|
iterator | begin () noexcept |
| Pointer to initial local element in the array. More...
|
|
constexpr const_iterator | end () const noexcept |
| Pointer past final local element in the array. More...
|
|
iterator | end () noexcept |
| Pointer past final local element in the array. More...
|
|
constexpr size_type | size () const noexcept |
| Number of array elements in local memory. More...
|
|
constexpr const_reference | operator[] (const size_type n) const |
| Subscript operator, access to local array element at given position. More...
|
|
reference | operator[] (const size_type n) |
| Subscript operator, access to local array element at given position. More...
|
|
constexpr bool | is_local (index_type local_index) const |
| Checks whether the given local index is local to the calling unit. More...
|
|
constexpr self_t | block (index_type block_lindex) const |
| View at block at given global block offset. More...
|
|
constexpr const PatternType & | pattern () const noexcept |
| The pattern used to distribute array elements to units. More...
|
|
template<typename T, typename IndexType, class PatternType, typename LocalMemSpaceT>
class dash::LocalArrayRef< T, IndexType, PatternType, LocalMemSpaceT >
Proxy type representing local access to elements in a dash::Array
.
- Todo:
- Expression
dash::index
(dash:begin(dash:local(array))) should be valid; requires dash::LocalArrayRef<T,...>::pointer
to provide method
.pos().
- Implemented concept:
- Array Concept
Definition at line 105 of file Array.h.
template<typename T, typename IndexType, class PatternType, typename LocalMemSpaceT>
constexpr const_reference dash::LocalArrayRef< T, IndexType, PatternType, LocalMemSpaceT >::operator[] |
( |
const size_type |
n | ) |
const |
|
inline |
template<typename T, typename IndexType, class PatternType, typename LocalMemSpaceT>
reference dash::LocalArrayRef< T, IndexType, PatternType, LocalMemSpaceT >::operator[] |
( |
const size_type |
n | ) |
|
|
inline |
Subscript operator, access to local array element at given position.
Definition at line 223 of file Array.h.
224 return (_array->m_lbegin)[n];
template<typename T, typename IndexType, class PatternType, typename LocalMemSpaceT>
constexpr const PatternType& dash::LocalArrayRef< T, IndexType, PatternType, LocalMemSpaceT >::pattern |
( |
| ) |
const |
|
inlinenoexcept |
template<typename T, typename IndexType, class PatternType, typename LocalMemSpaceT>
constexpr size_type dash::LocalArrayRef< T, IndexType, PatternType, LocalMemSpaceT >::size |
( |
| ) |
const |
|
inlinenoexcept |
Number of array elements in local memory.
Definition at line 209 of file Array.h.
Referenced by dash::ArrayRef< ElementType, IndexType, PatternType, LocalMemSpaceT >::ArrayRef(), dash::ArrayRef< ElementType, IndexType, PatternType, LocalMemSpaceT >::at(), dash::Array< signal_t >::at(), dash::Array< signal_t >::empty(), dash::LocalArrayRef< value_type, dash::default_index_t, BlockPattern< 1, ROW_MAJOR, dash::default_index_t >, HostSpace >::pattern(), and dash::GlobHeapMem< ElementType, LocalMemorySpace, AllocationPolicy, LocalAlloc >::shrink().
constexpr const_iterator end() const noexcept
Pointer past final local element in the array.
constexpr const_iterator begin() const noexcept
Pointer to initial local element in the array.