Main class to define a pView, composed of a reference to a collection of elements, a domain and a mapping function.
More...
|
|
core_view & | operator= (core_view const &)=default |
| |
|
| core_view (core_view &&)=default |
| |
| | core_view (core_view const &other) |
| | core_view constructor based on another view. More...
|
| |
| | core_view (view_container_type *vcont, domain_type const &dom, map_func_type mfunc=MapFunc()) |
| | Constructor based on a container pointer. The views takes ownership over the passed underlying container. More...
|
| |
| | core_view (view_container_type const &vcont, domain_type const &dom, map_func_type mfunc=MapFunc()) |
| | core_view constructor based on a container reference. More...
|
| |
|
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 |
| |
|
size_type | size (void) const |
| | Returns the number of elements referenced for the view.
|
| |
|
bool | empty (void) const |
| | Returns true if the view does not reference any element.
|
| |
|
|
typedef C | view_container_type |
| |
|
typedef Dom | domain_type |
| |
|
typedef MapFunc | map_func_type |
| |
|
typedef mf_type_helper::index_type | index_type |
| |
|
typedef mf_type_helper::gid_type | gid_type |
| |
|
typedef std::size_t | size_type |
| |
|
|
C * | m_ptr |
| |
|
sptr_type | m_sptr |
| |
template<typename C, typename Dom, typename MapFunc>
class stapl::core_view< C, Dom, MapFunc >
Main class to define a pView, composed of a reference to a collection of elements, a domain and a mapping function.
- Template Parameters
-
| C | Container type. |
| Dom | Domain type. |
| MapFunc | Mapping function type. |
◆ core_view() [1/3]
template<typename C, typename Dom, typename MapFunc>
core_view constructor based on another view.
This constructor creates a view from another view. When we coarsen to base containers there is no versioning.
- Parameters
-
| other | The other view to copy from. |
◆ core_view() [2/3]
template<typename C, typename Dom, typename MapFunc>
| stapl::core_view< C, Dom, MapFunc >::core_view |
( |
view_container_type * |
vcont, |
|
|
domain_type const & |
dom, |
|
|
map_func_type |
mfunc = MapFunc() |
|
) |
| |
Constructor based on a container pointer. The views takes ownership over the passed underlying container.
- Parameters
-
| vcont | pointer to the container used to forward the operations. |
| dom | domain to be used by the view. |
| mfunc | mapping function to transform view indices to container gids. |
◆ core_view() [3/3]
template<typename C, typename Dom, typename MapFunc>
| stapl::core_view< C, Dom, MapFunc >::core_view |
( |
view_container_type const & |
vcont, |
|
|
domain_type const & |
dom, |
|
|
map_func_type |
mfunc = MapFunc() |
|
) |
| |
core_view constructor based on a container reference.
This constructor creates a view that doesn't take ownership over the container.
- Parameters
-
| vcont | reference to the container used to forward the operations. |
| dom | domain to be used by the view. |
| mfunc | mapping function to transform view indices to container gids. |
◆ get_container()
template<typename C, typename Dom, typename MapFunc>
| view_container_type* stapl::core_view< C, Dom, MapFunc >::get_container |
( |
void |
| ) |
const |
◆ container()
template<typename C, typename Dom, typename MapFunc>
The documentation for this class was generated from the following file: