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_type & | reference |
typedef value_type * | iterator |
Public Attributes | |
value_type | m_md |
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.
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.
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.
index_type stapl::metadata::base_container_wrapper< BC >::get_local_vid | ( | index_type const & | ) |
void stapl::metadata::base_container_wrapper< BC >::push_back_here | ( | T const & | ) |
size_t stapl::metadata::base_container_wrapper< BC >::local_size | ( | ) | const |
Returns the number of local elements (number of elements in the base container).
location_type stapl::metadata::base_container_wrapper< BC >::get_location_element | ( | index_type const & | idx | ) | const |
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.