STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members | Public Member Functions | Public Types | Protected Attributes
stapl::metadata::view_wrapper< T, Domain, Isomorphic > Struct Template Reference

Wrapper class over a view used to erase the type of the container metadata. More...

Public Member Functions

template<typename CMDView >
 view_wrapper (CMDView *part)
 Constructs a wrapper over the given view CMDView.
 
view_wrapperoperator= (view_wrapper const &other)
 
 view_wrapper (view_wrapper const &other)
 
size_t local_size () const
 Returns the number of local elements (number of elements in the base container). More...
 
size_t size () const
 
Domain domain () const
 
dimensions_type dimensions () const
 
dimensions_type local_dimensions () const
 
index_type get_local_vid (index_type const &index) const
 
value_type operator[] (index_type const &index) const
 
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...
 
location_type get_location_element (index_type const &index) const
 
void push_back_here (T const &) const
 
void update ()
 
void print (void) const
 

Public Types

typedef view_base< T, Domain, Isomorphic > base_ref
 
typedef T value_type
 
typedef Domain domain_type
 
typedef std::conditional< Isomorphic, typename Domain::index_type, std::size_t >::type index_type
 
typedef index_type dimensions_type
 
typedef size_t size_type
 
using iterator = index_iterator
 

Protected Attributes

std::shared_ptr< base_refm_ref
 
Domain m_domain
 

Detailed Description

template<typename T, typename Domain, bool Isomorphic>
struct stapl::metadata::view_wrapper< T, Domain, Isomorphic >

Wrapper class over a view used to erase the type of the container metadata.

Template Parameters
TType of the metadata used as value_type in the coarsen container information.

Member Function Documentation

◆ operator=()

template<typename T, typename Domain, bool Isomorphic>
view_wrapper& stapl::metadata::view_wrapper< T, Domain, Isomorphic >::operator= ( view_wrapper< T, Domain, Isomorphic > const &  other)

◆ local_size()

template<typename T, typename Domain, bool Isomorphic>
size_t stapl::metadata::view_wrapper< T, Domain, Isomorphic >::local_size ( ) const
virtual

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

Implements stapl::metadata::view_base< T, Domain, Isomorphic >.

◆ get_local_vid()

template<typename T, typename Domain, bool Isomorphic>
index_type stapl::metadata::view_wrapper< T, Domain, Isomorphic >::get_local_vid ( index_type const &  index) const
virtual

◆ begin()

template<typename T, typename Domain, bool Isomorphic>
iterator stapl::metadata::view_wrapper< T, Domain, Isomorphic >::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 T, typename Domain, bool Isomorphic>
iterator stapl::metadata::view_wrapper< T, Domain, Isomorphic >::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_location_element()

template<typename T, typename Domain, bool Isomorphic>
location_type stapl::metadata::view_wrapper< T, Domain, Isomorphic >::get_location_element ( index_type const &  index) const
virtual

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