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

Definition of a view over a metadata container. More...

Public Member Functions

 view (C *cont)
 
size_t local_size () const
 
size_t size () const
 
dimensions_type local_dimensions () const
 
dimensions_type dimensions () const
 
index_type get_local_vid (index_type const &index) const
 
value_type operator[] (index_type const &index) const
 
void set_element (index_type const &index, value_type const &value) const
 
void push_back_here (value_type const &val) const
 
location_type get_location_element (index_type const &index) const
 
void update ()
 
void print (void) const
 
virtual index_type get_local_vid (index_type const &) const=0
 
virtual value_type operator[] (index_type const &) const=0
 
virtual location_type get_location_element (index_type const &) const=0
 
bool is_valid (void) const
 
view_container_type * get_container (void) const
 
view_container_type & container (void)
 
view_container_type & container (void) const
 
domain_type const & domain (void) const
 
domain_type & domain (void)
 
void set_domain (domain_type const &dom)
 
map_func_type const & mapfunc (void) const
 
bool empty (void) const
 Returns true if the view does not reference any element.
 

Public Types

typedef C::value_type value_type
 
typedef Dom::index_type index_type
 
typedef index_type dimensions_type
 
typedef C view_container_type
 
typedef Dom domain_type
 
typedef MapFunc map_func_type
 
typedef mf_type_helper::gid_type gid_type
 
typedef std::size_t size_type
 

Public Attributes

C * m_ptr
 
sptr_type m_sptr
 

Protected Member Functions

C * container_ptr (void) const
 Returns the container's pointer.
 

Detailed Description

template<typename C, typename Dom, typename MapFunc>
class stapl::metadata::view< C, Dom, MapFunc >

Definition of a view over a metadata container.

Template Parameters
CContainer type.
DomDomain type.
MapFuncMapping function type.

Member Function Documentation

◆ get_container()

template<typename C, typename Dom, typename MapFunc>
view_container_type* stapl::core_view< C, Dom, MapFunc >::get_container ( void  ) const
inherited

◆ container()

template<typename C, typename Dom, typename MapFunc>
view_container_type& stapl::core_view< C, Dom, MapFunc >::container ( void  ) const
inherited

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