STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members | Public Member Functions | Public Types
stapl::metadata::infinite_container< C, MD > Class Template Reference

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
 

Detailed Description

template<typename C, typename MD>
class stapl::metadata::infinite_container< C, MD >

Metadata container used for views that represent an infinite collection of elements (e.g. repeat_view, output_view).

Template Parameters
CType of the infinite container.
MDType of the metadata used to represent the metadata information.

Member Function Documentation

◆ begin()

template<typename C , typename MD >
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.

Note
There is only one base container per location. The iteration space generated for this iterator is not bounded.

◆ end()

template<typename C , typename MD >
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.

Note
There is only one base container per location.

◆ get_local_vid()

template<typename C , typename MD >
index_type stapl::metadata::infinite_container< C, MD >::get_local_vid ( index_type const &  index)

Returns the global index of the given local index.

◆ push_back_here()

template<typename C , typename MD >
template<typename T >
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.

◆ local_size()

template<typename C , typename MD >
size_t stapl::metadata::infinite_container< C, MD >::local_size ( ) const

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

◆ get_location_element()

template<typename C , typename MD >
location_type stapl::metadata::infinite_container< C, MD >::get_location_element ( index_type const &  ) const

◆ update()

template<typename C , typename MD >
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.


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