Metadata container used for views that represent an infinite collection of elements (e.g. repeat_view, output_view). More...
Public Member Functions | |
infinite_container (C *cont) | |
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 &) |
domain_type | domain () const |
size_t | size () const |
dimensions_type | dimensions () const |
index_type | get_local_vid (index_type const &index) |
Returns the global index of the given local index . More... | |
template<typename T > | |
void | push_back_here (T const &) |
Adds the given metadata information in to the local storage. More... | |
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 (index_type const &) const |
void | update () |
Verify that all the elements that need to be stored in this location were assigned. More... | |
Public Types | |
typedef detail::indexed_domain_type< num_dimensions >::type | domain_type |
typedef domain_type::dimensions_type | dimensions_type |
typedef domain_type::index_type | index_type |
typedef MD | value_type |
typedef value_type | reference |
typedef detail::infinite_iter< MD > | iterator |
Metadata container used for views that represent an infinite collection of elements (e.g. repeat_view, output_view).
C | Type of the infinite container. |
MD | Type of the metadata used to represent the metadata information. |
iterator stapl::metadata::infinite_container< C, MD >::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::infinite_container< C, MD >::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::infinite_container< C, MD >::get_local_vid | ( | index_type const & | index | ) |
Returns the global index of the given local index
.
void stapl::metadata::infinite_container< C, MD >::push_back_here | ( | T const & | ) |
Adds the given metadata information in to the local storage.
This class does not support push_back_here
.
size_t stapl::metadata::infinite_container< C, MD >::local_size | ( | ) | const |
Returns the number of local elements (number of elements in the base container).
location_type stapl::metadata::infinite_container< C, MD >::get_location_element | ( | index_type const & | ) | const |
void stapl::metadata::infinite_container< C, MD >::update | ( | ) |
Verify that all the elements that need to be stored in this location were assigned.
This class does not support push_back_here
.