Template Struct MultiBlock¶
Defined in File block_traits.hpp
Struct Documentation¶
-
template<typename
Impl
>
structripple
::
MultiBlock
¶ An interface for types which should support contain block data for both the host and device.
- Template Parameters
Impl
: The implementation of the interface.
Public Functions
-
auto
impl
() const noexcept -> const Impl*¶ Gets a const pointer to the implementation.
- Return
A const pointer to the implementation type.
-
auto
impl
() noexcept -> Impl*¶ Gets a pointer to the implementation type.
- Return
A pointer to the implementation type.
-
auto
device_iterator
() noexcept -> typename MultiBlockTraits<Impl>::Iterator¶ Gets an iterator to the beginning of the block device data.
- Return
An iterator to the beginning of the block device data.
-
auto
host_iterator
() noexcept -> typename MultiBlockTraits<Impl>::Iterator¶ Gets an iterator to the beginning of the block device data.
- Return
An iterator to the beginning of the block device data.
-
decltype(auto)
stream
() const noexcept¶ Gets the stream for the block.
- Return
The stream for the block.