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::projected_container< View, MDContainer > Struct Template Reference

Wrapper around a metadata container to create metadata information on demand, by projecting the container's domain into the view's domain. More...

Public Member Functions

 projected_container (View *view, lower_md_cont_type *md)
 Constructs a projected_container wrapper over the c view using the given metadata container md.
 
reference operator[] (index_type index)
 
size_t size () const
 
dimensions_type dimensions () const
 
domain_type domain () const
 
index_type get_local_vid (index_type index) const
 
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 index) const
 
void update ()
 Verify that all the elements that need to be stored in this location were assigned. More...
 

Public Types

typedef std::remove_pointer< typename MDContainer::second_type >::type lower_md_cont_type
 
typedef lower_md_cont_type::domain_type domain_type
 
typedef lower_md_cont_type::dimensions_type dimensions_type
 
typedef lower_md_cont_type::index_type index_type
 
typedef View::domain_type domain_t
 
typedef metadata_entry< domain_t, typename lower_md_cont_type::value_type::component_type, typename lower_md_cont_type::value_type::cid_type > value_type
 
typedef value_type reference
 
typedef metadata_ctor_func< View, MDContainer > transform_t
 

Public Attributes

View m_view
 
lower_md_cont_type * m_md
 

Detailed Description

template<typename View, typename MDContainer>
struct stapl::metadata::projected_container< View, MDContainer >

Wrapper around a metadata container to create metadata information on demand, by projecting the container's domain into the view's domain.

Parameters
ViewType of view from which the metadata is created.
Template Parameters
MDContainerType of the metadata container used to represent the metadata information

Member Function Documentation

◆ get_local_vid()

template<typename View , typename MDContainer >
index_type stapl::metadata::projected_container< View, MDContainer >::get_local_vid ( index_type  index) const

◆ push_back_here()

template<typename View , typename MDContainer >
template<typename T >
void stapl::metadata::projected_container< View, MDContainer >::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 View , typename MDContainer >
size_t stapl::metadata::projected_container< View, MDContainer >::local_size ( ) const

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

◆ get_location_element()

template<typename View , typename MDContainer >
location_type stapl::metadata::projected_container< View, MDContainer >::get_location_element ( index_type  index) const

◆ update()

template<typename View , typename MDContainer >
void stapl::metadata::projected_container< View, MDContainer >::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 struct was generated from the following file: