Operations class for container distributions that provides set_element. More...
Public Member Functions | |
| void | set_element (gid_type const &gid, value_type const &val) |
| Update the element at a GID by replacing it with a given value. More... | |
| template<typename SourceView , typename std::enable_if< use_bc_set_elements< typename std::decay< SourceView >::type >::value, int >::type = 0> | |
| void | set_elements (gid_type gid, SourceView &&source_view) |
Update a range of contiguous elements in the container, starting at gid. A total of view.size() elements will be updated with the values in view. More... | |
| template<typename View , typename std::enable_if< !use_bc_set_elements< typename std::decay< View >::type >::value, int >::type = 0> | |
| void | set_elements (gid_type gid, View &&view) |
| Signature of set_elements used when underlying base container is not supported. Fall back to iterative use of set_element. | |
Operations class for container distributions that provides set_element.
Uses the CRTP pattern. Requires that the base container has a set_element method that takes a single GID.
| Derived | The most derived distribution class |
| void stapl::operations::settable< Derived >::set_element | ( | gid_type const & | gid, |
| value_type const & | val | ||
| ) |
Update the element at a GID by replacing it with a given value.
| gid | GID of the element to replace |
| val | The new value for the element |
| void stapl::operations::settable< Derived >::set_elements | ( | gid_type | gid, |
| SourceView && | source_view | ||
| ) |
Update a range of contiguous elements in the container, starting at gid. A total of view.size() elements will be updated with the values in view.
1.8.13