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

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
 

Detailed Description

template<typename Derived>
class stapl::operations::random_access< Derived >

Operations class for container distributions that provides for random access by allowing the creation of references.

Template Parameters
DerivedThe most derived distribution class

Member Function Documentation

◆ operator[]() [1/2]

template<typename Derived>
reference stapl::operations::random_access< Derived >::operator[] ( gid_type const &  gid)

Construct a reference to the element at a specific gid.

Parameters
gidThe index for which to create the reference
Returns
A proxy over the element.

◆ operator[]() [2/2]

template<typename Derived>
const_reference stapl::operations::random_access< Derived >::operator[] ( gid_type const &  gid) const

Construct a reference to the element at a specific gid.

Parameters
gidThe index for which to create the reference
Returns
A proxy over the element.

◆ make_reference() [1/4]

template<typename Derived>
reference stapl::operations::random_access< Derived >::make_reference ( gid_type const &  gid)

Construct a reference to the element at a specific gid.

Parameters
gidThe GID of the element
Returns
Proxy over the element.

◆ make_reference() [2/4]

template<typename Derived>
const_reference stapl::operations::random_access< Derived >::make_reference ( gid_type const &  gid) const

Construct a reference to the element at a specific gid.

Parameters
gidThe GID of the element
Returns
Proxy over the element.

◆ make_reference() [3/4]

template<typename Derived>
template<typename... Indices>
reference stapl::operations::random_access< Derived >::make_reference ( Indices const &...  i)

Construct a reference to the element at a specific gid.

Parameters
iThe indices of the gid at which the element resides.
Returns
Proxy over the element.

◆ make_reference() [4/4]

template<typename Derived>
template<typename... Indices>
const_reference stapl::operations::random_access< Derived >::make_reference ( Indices const &...  i) const

Construct a reference to the element at a specific gid.

Parameters
iThe indices of the gid at which the element resides.
Returns
Proxy over the element.

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