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::mix_view< View, Info, CID > Class Template Reference

Defines a view that behaves as the given View type but has information about data locality specified by the given locality information (Info). More...

Public Member Functions

 mix_view (mix_view const &other)
 
 mix_view (mix_view const &other, typename View::view_container_type *vcont)
 
 mix_view (typename View::view_container_type *vcont, domain_type const &dom, map_func_type mfunc, index_type const &id, Info const &md_info, std::true_type)
 
 mix_view (typename View::view_container_type *vcont, domain_type const &dom, map_func_type mfunc, index_type const &id, Info const &md_info, std::false_type=std::false_type())
 
 mix_view (View const &vcont, domain_type const &dom, map_func_type mfunc, index_type const &vid, Info const &md_info)
 
 mix_view (base_type const &base_view, index_type const &vid, Info const &md_info)
 
component_type * get_component (void) const
 
bool is_local (void) const
 Determine if the data that this view references is local (if the methods invoked have the the same location as the referenced data). More...
 
index_type get_id (void) const
 
Info const & get_metadata (void) const
 
std::pair< location_type, loc_qualget_preferred_location (void) const
 Returns the location where the associated data is stored, qualified based on the validity of the component. More...
 

Public Types

typedef View::domain_type domain_type
 
typedef View::map_func_type map_func_type
 
typedef std::remove_pointer< typename Info::component_type >::type component_type
 
typedef View base_type
 
typedef CID index_type
 
typedef nfast_view< mix_viewfast_view_type
 Defines the type of the resulting view when the base container is used instead of the View's underlying container.
 
typedef is_container< typename View::value_type >::type disable_localization
 

Public Attributes

index_type m_id
 
Info m_md_info
 

Detailed Description

template<typename View, typename Info, typename CID>
class stapl::mix_view< View, Info, CID >

Defines a view that behaves as the given View type but has information about data locality specified by the given locality information (Info).

Template Parameters
ViewType of view that this view is based on.
InfoLocality information type.
CIDType of the subview index

Member Function Documentation

◆ is_local()

template<typename View , typename Info , typename CID >
bool stapl::mix_view< View, Info, CID >::is_local ( void  ) const

Determine if the data that this view references is local (if the methods invoked have the the same location as the referenced data).

◆ get_preferred_location()

template<typename View , typename Info , typename CID >
std::pair<location_type, loc_qual> stapl::mix_view< View, Info, CID >::get_preferred_location ( void  ) const

Returns the location where the associated data is stored, qualified based on the validity of the component.


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