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::base_container_wrapper< BC > Struct Template Reference

Defines a locality metadata container for a given base container (BC). More...

Public Member Functions

 base_container_wrapper (BC *bc)
 
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...
 
reference operator[] (index_type const &)
 
size_t size () const
 
dimensions_type dimensions () const
 
dimensions_type local_dimensions () const
 
domain_type domain () const
 
index_type get_local_vid (index_type const &)
 
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...
 
location_type get_location_element (index_type const &idx) const
 
void update ()
 Computes the total number of elements (metadata information) and copies the local stored metadata into the distributed container, after using the prefix sum algorithm to determine the correct position for each element in the distributed container. More...
 

Public Types

typedef BC::cid_type cid_type
 
typedef BC::domain_type bc_domain_type
 
typedef bc_domain_type domain_type
 
typedef domain_type::index_type index_type
 
typedef domain_type::dimensions_type dimensions_type
 
typedef metadata_entry< bc_domain_type, BC *, index_type > value_type
 
typedef value_typereference
 
typedef value_typeiterator
 

Public Attributes

value_type m_md
 

Detailed Description

template<typename BC>
struct stapl::metadata::base_container_wrapper< BC >

Defines a locality metadata container for a given base container (BC).

This class provides the same interface as growable_container. This class is used when a nested execution is invoked over a fast view.

Member Function Documentation

◆ begin()

template<typename BC >
iterator stapl::metadata::base_container_wrapper< BC >::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 BC >
iterator stapl::metadata::base_container_wrapper< BC >::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 BC >
index_type stapl::metadata::base_container_wrapper< BC >::get_local_vid ( index_type const &  )

◆ push_back_here()

template<typename BC >
template<typename T >
void stapl::metadata::base_container_wrapper< BC >::push_back_here ( T const &  )

◆ local_size()

template<typename BC >
size_t stapl::metadata::base_container_wrapper< BC >::local_size ( ) const

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

◆ get_location_element()

template<typename BC >
location_type stapl::metadata::base_container_wrapper< BC >::get_location_element ( index_type const &  idx) const

◆ update()

template<typename BC >
void stapl::metadata::base_container_wrapper< BC >::update ( )

Computes the total number of elements (metadata information) and copies the local stored metadata into the distributed container, after using the prefix sum algorithm to determine the correct position for each element in the distributed container.


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