10#include <rdma/fabric.h>
11#include <rdma/fi_domain.h>
35 ::fid_domain*
raw() noexcept;
40 ::fid_domain const*
raw() const noexcept;
std::shared_ptr< Fabric > _fabric
void registerRegion(Region const ®ion, std::uint64_t access)
Register a single memory region to this domain.
void registerRegions(std::vector< Region > const ®ions, std::uint64_t access)
Register a list of memory regions to this domain.
bool usingVirtualAddresses() const noexcept
When this returns true, a user should use virtual addresses instead of 0 based addresses when referin...
std::vector< LocalRegion > localRegions() const noexcept
Get the local regions associated to the registered regions to this domain.
std::shared_ptr< Fabric > fabric() const noexcept
Accessor for the fabric associated with this domain.
::fid_domain * raw() noexcept
Accessor for the underlying fi_domain instance.
void close()
Close this domain and release all associated resources.
std::vector< RegisteredRegion > _registeredRegions
static std::shared_ptr< Domain > open(std::shared_ptr< Fabric > fabric)
Open a new domain associated with the specified fabric.
void operator=(Domain const &)=delete
Domain(Domain const &)=delete
RegisteredRegion registerRegionImpl(Region const ®ion, std::uint64_t access)
Register a single memory region to this domain.
bool usingRecvBufForCqData() const noexcept
When this returns true, it means the target must post a fi_recv in order to receive immediate data.
std::vector< RemoteRegion > remoteRegions() const noexcept
Get the remote regions associated to the registered regions to this domain.
RAIII wrapper around a libfabric fabric object (fid_fabric).
Represent a memory region (unregistered).
Represent a registered memory region.
Represent a source memory region used for for data transfer.
Represent a remote memory region used for data transfer.