|
| storage< Accessor > | accessor_ |
| constexpr | MaskedView (const Accessor &accessor) |
| | Constructor from a given accessor.
|
| constexpr | MaskedView (Accessor &&accessor) |
| | Constructor from a given accessor.
|
| constexpr | MaskedView (const MaskedView< T, N, mask, Accessor > &other) |
| | Shallow copy constructor.
|
| constexpr | MaskedView (MaskedView< T, N, mask, Accessor > &&other) |
| | Shallow move constructor.
|
| constexpr decltype(auto) | operator[] (size_t idx) |
| | Element access operator.
|
| constexpr decltype(auto) | operator[] (size_t idx) const |
template<typename T, size_t N, Kokkos::Array< bool,
N > mask, ValidAccessor< T > Accessor>
class mundy::MaskedView< T, N, mask, Accessor >
Concept: Sometimes we'd like to access a subset of a contiguous accessor as through it were a contiguous but without copying the underlying data. This class provides a way to do that. For example, we might want to mask-off every other value.
- Template Parameters
-
| T | The type of the elements |
| N | The size of the accessor |
| Accessor | The type of the contiguous accessor |