STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members | Public Member Functions | Public Types | Public Attributes
stapl::metadata::container_wrapper< D > Struct Template Reference

Metadata container that wraps a distribution of a pContainer. More...

Public Member Functions

 container_wrapper (distribution_type *dist)
 
iterator begin ()
 Returns an iterator to the beginning of the local base container. More...
 
iterator end ()
 Returns an iterator to the end of the local base container. More...
 
value_type operator[] (size_t index)
 
size_t size () const
 
dimensions_type dimensions () const
 
domain_type domain () const
 
size_t get_local_vid (size_t)
 
template<typename T >
void push_back_here (T const &)
 
size_t local_size () const
 Returns the number of local elements (number of elements in the base container). More...
 
dimensions_type local_dimensions () const
 
location_type get_location_element (size_t index) const
 
void update ()
 

Public Types

typedef D distribution_type
 
typedef size_t index_type
 
typedef size_t dimensions_type
 
typedef indexed_domain< index_type > domain_type
 
typedef detail::metadata_info< distribution_type > value_type
 
typedef value_typereference
 
typedef value_typeiterator
 

Public Attributes

distribution_type & m_dist
 
value_type m_ref
 

Detailed Description

template<typename D>
struct stapl::metadata::container_wrapper< D >

Metadata container that wraps a distribution of a pContainer.

This class uses the given distribution to implement the methods without incurring new storage creation for the locality metadata. This metadata container is used for static_array when the number of base containers and its partition is fixed (no migration is supported).

Member Function Documentation

◆ begin()

template<typename D >
iterator stapl::metadata::container_wrapper< D >::begin ( void  )

Returns an iterator to the beginning of the local base container.

This iterator is used to traverse the local data.

Note
There is only one base container per location.

◆ end()

template<typename D >
iterator stapl::metadata::container_wrapper< D >::end ( void  )

Returns an iterator to the end of the local base container.

This iterator is used to traverse the local data.

Note
There is only one base container per location.

◆ get_local_vid()

template<typename D >
size_t stapl::metadata::container_wrapper< D >::get_local_vid ( size_t  )

◆ push_back_here()

template<typename D >
template<typename T >
void stapl::metadata::container_wrapper< D >::push_back_here ( T const &  )

◆ local_size()

template<typename D >
size_t stapl::metadata::container_wrapper< D >::local_size ( ) const

Returns the number of local elements (number of elements in the base container).

◆ get_location_element()

template<typename D >
location_type stapl::metadata::container_wrapper< D >::get_location_element ( size_t  index) const


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