11#include <rdma/fabric.h>
64 ::fi_info& operator*() noexcept;
67 ::fi_info const& operator*() const noexcept;
70 ::fi_info* operator->() noexcept;
74 ::fi_info const* operator->() const noexcept;
79 ::fi_info*
raw() noexcept;
82 ::fi_info const*
raw() const noexcept;
114 ::fi_info
const&
operator*()
const noexcept;
124 ::fi_info*
raw()
noexcept;
127 ::fi_info
const*
raw()
const noexcept;
145 std::size_t
txSize()
const noexcept;
174 using value_type = std::conditional_t<Const, FabricInfoView const, FabricInfoView>;
175 using raw_type = std::conditional_t<Const, ::fi_info const*, ::fi_info*>;
202 return other._it ==
_it;
207 return !(*
this == other);
Owning, type-safe representation of a libfabric address.
Implements a const/non-const ForwardIterator over a fi_info linked list, for use with range-based for...
std::ptrdiff_t difference_type
std::conditional_t< Const, ::fi_info const *, ::fi_info * > raw_type
FabricInfoIterator operator++(int)
std::conditional_t< Const, FabricInfoView const, FabricInfoView > value_type
FabricInfoIterator & operator++()
bool operator==(FabricInfoIterator const &other) const noexcept
value_type operator*() const
bool operator!=(FabricInfoIterator const &other) const noexcept
FabricInfoIterator(raw_type it) noexcept
Wrapper for a linked-list of fi_info objects, mostly returned from fi_getinfo.
FabricInfoIterator< false > iterator
FabricInfoList(FabricInfoList const &)=delete
static FabricInfoList get()
Calls fi_getinfo without any hints and returns the full list of fabric information objects.
const_iterator cbegin() const noexcept
static FabricInfoList getSourceInterfaces(ProviderConfig const &providerConfig, std::optional< FabricAddress > const &sourceAddress)
Calls fi_getinfo with FI_SOURCE to get source interface information. Uses hints derived from the prov...
iterator begin() noexcept
FabricInfoIterator< true > const_iterator
const_iterator cend() const noexcept
FabricInfoList & operator=(FabricInfoList const &)=delete
static FabricInfoList own(::fi_info *info) noexcept
Take ownership over a fi_info raw pointer.
Non-owning view of a FabricInfo. Returned when iterating over a FabricInfoList.
FabricInfo owned() noexcept
Return an owned version that can be moved, copied and dereferenced safely even if the original Fabric...
::fi_ep_type endpointType() const noexcept
FabricInfoView(::fi_info const *)
Private constructor.
std::size_t txSize() const noexcept
Return the transmit queue size of the endpoint.
std::size_t txIovLimit() const noexcept
Return the IOV limit for this fabric info, which is the maximum number of iovecs that can be posted i...
FabricInfo(FabricInfoView) noexcept
Create an owning FabricInfo object from a non-owning view.
FabricInfoView view() const noexcept
Return a non-owning view of the FabricInfo.
static FabricInfo empty() noexcept
Create and empty FabricInfo.
::fi_info * raw() noexcept
Returns the raw fi_info object managed by this FabricInfo instance.
static FabricInfo clone(::fi_info const *) noexcept
RAII wrapper around a libfabric `fi_info`` structure.
::fi_info * operator->() noexcept
Dereferencing the FabricInfo return the raw fi_info object managed by this object.
static FabricInfo own(::fi_info *) noexcept
Own an existing fi_info object.
void free() noexcept
Called internally to release the fi_info object.
::fi_info & operator*() noexcept
Dereferencing the FabricInfo return the raw fi_info object managed by this object.