Operations class for container distributions that provides for random access by allowing the creation of references. More...
Public Member Functions | |
reference | operator[] (gid_type const &gid) |
Construct a reference to the element at a specific gid. More... | |
const_reference | operator[] (gid_type const &gid) const |
Construct a reference to the element at a specific gid. More... | |
reference | make_reference (gid_type const &gid) |
Construct a reference to the element at a specific gid. More... | |
const_reference | make_reference (gid_type const &gid) const |
Construct a reference to the element at a specific gid. More... | |
template<typename... Indices> | |
reference | make_reference (Indices const &... i) |
Construct a reference to the element at a specific gid. More... | |
template<typename... Indices> | |
const_reference | make_reference (Indices const &... i) const |
Construct a reference to the element at a specific gid. More... | |
Public Types | |
typedef referencer_t::result_type | reference |
typedef const_referencer_t::result_type | const_reference |
Operations class for container distributions that provides for random access by allowing the creation of references.
Derived | The most derived distribution class |
reference stapl::operations::random_access< Derived >::operator[] | ( | gid_type const & | gid | ) |
Construct a reference to the element at a specific gid.
gid | The index for which to create the reference |
const_reference stapl::operations::random_access< Derived >::operator[] | ( | gid_type const & | gid | ) | const |
Construct a reference to the element at a specific gid.
gid | The index for which to create the reference |
reference stapl::operations::random_access< Derived >::make_reference | ( | gid_type const & | gid | ) |
Construct a reference to the element at a specific gid.
gid | The GID of the element |
const_reference stapl::operations::random_access< Derived >::make_reference | ( | gid_type const & | gid | ) | const |
Construct a reference to the element at a specific gid.
gid | The GID of the element |
reference stapl::operations::random_access< Derived >::make_reference | ( | Indices const &... | i | ) |
Construct a reference to the element at a specific gid.
i | The indices of the gid at which the element resides. |
const_reference stapl::operations::random_access< Derived >::make_reference | ( | Indices const &... | i | ) | const |
Construct a reference to the element at a specific gid.
i | The indices of the gid at which the element resides. |