11#include <rdma/fi_rma.h>
35 ::fi_rma_iov
toRmaIov()
const noexcept;
50 using iterator = std::vector<RemoteRegion>::iterator;
66 ::fi_rma_iov
const*
asRmaIovs() const noexcept;
103 std::size_t
size() const noexcept
111 template<
typename Begin,
typename End>
115 std::vector<::fi_rma_iov> rmaIovs;
116 std::ranges::transform(std::forward<Begin>(
begin),
117 std::forward<End>(
end),
118 std::back_inserter(rmaIovs),
126 std::vector<::fi_rma_iov>
Represent a group of remote memory regions used for data transfer.
std::vector< RemoteRegion >::const_iterator const_iterator
std::vector<::fi_rma_iov > _rmaIovs
RemoteRegion const & operator[](std::size_t index) const
RemoteRegionGroup(std::vector< RemoteRegion > const &group)
Convert a vector of RemoteRegion into a RemoteRegionGroup.
static std::vector<::fi_rma_iov > rmaIovsFromGroup(Begin &&begin, End &&end) noexcept
Convert a vector of RemoteRegion into a vector of fi_rma_iov structures. Used by the constructor.
const_iterator end() const
std::vector< RemoteRegion > _inner
std::size_t size() const noexcept
std::vector< RemoteRegion >::iterator iterator
::fi_rma_iov const * asRmaIovs() const noexcept
Get a pointer to an array of fi_rma_iov structures representing the remote regions.
const_iterator begin() const
RemoteRegion & operator[](std::size_t index)
Represent a remote memory region used for data transfer.
::fi_rma_iov toRmaIov() const noexcept
Convert this RemoteRegion to a struct fi_rma_iov used by libfabric RMA transfer functions.
bool operator==(RemoteRegion const &other) const noexcept
RemoteRegion sub(std::uint64_t offset, std::size_t length) const
Create a sub-region of this RemoteRegion.