Itoyori  v0.0.1
checkout_span.hpp File Reference
Include dependency graph for checkout_span.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ityr::checkout_mode::no_access_t
 See ityr::checkout_mode::no_access. More...
 
class  ityr::checkout_span< T, Mode >
 Checkout span to automatically manage the lifetime of checked-out memory. More...
 

Namespaces

 ityr
 
 ityr::checkout_mode
 

Typedefs

using ityr::checkout_mode::read_t = ori::mode::read_t
 See ityr::checkout_mode::read. More...
 
using ityr::checkout_mode::write_t = ori::mode::write_t
 See ityr::checkout_mode::write. More...
 
using ityr::checkout_mode::read_write_t = ori::mode::read_write_t
 See ityr::checkout_mode::read_write. More...
 

Functions

template<typename T , typename Mode >
constexpr auto ityr::data (const checkout_span< T, Mode > &cs) noexcept
 
template<typename T , typename Mode >
constexpr auto ityr::size (const checkout_span< T, Mode > &cs) noexcept
 
template<typename T , typename Mode >
constexpr auto ityr::begin (const checkout_span< T, Mode > &cs) noexcept
 
template<typename T , typename Mode >
constexpr auto ityr::end (const checkout_span< T, Mode > &cs) noexcept
 
template<typename T , typename Mode >
checkout_span< T, Mode > ityr::make_checkout (ori::global_ptr< T > gptr, std::size_t n, Mode mode)
 Checkout a global memory region. More...
 
template<typename T , typename Mode >
checkout_span< T, Mode > ityr::make_checkout (global_span< T > gspan, Mode mode)
 Checkout a global memory region. More...
 
template<typename... Args>
auto ityr::make_checkouts (Args &&... args)
 Checkout multiple global memory regions. More...
 

Variables

constexpr read_t ityr::checkout_mode::read
 Read-only checkout mode. More...
 
constexpr write_t ityr::checkout_mode::write
 Write-only checkout mode. More...
 
constexpr read_write_t ityr::checkout_mode::read_write
 Read+Write checkout mode. More...
 
constexpr no_access_t ityr::checkout_mode::no_access
 Checkout mode to disable automatic checkout. More...