MXL : Media eXchange Layer
MXL
Loading...
Searching...
No Matches
mxl::lib::fabrics::ofi::FabricInfoView Class Reference

Non-owning view of a FabricInfo. Returned when iterating over a FabricInfoList. More...

Public Member Functions

::fi_ep_type endpointType () const noexcept
::fi_info const & operator* () const noexcept
 Dereferencing returns the raw ::fi_info object associated with this view.
::fi_info & operator* () noexcept
 Dereferencing returns the raw ::fi_info object associated with this view.
::fi_info const * operator-> () const noexcept
 Dereferencing returns the raw ::fi_info object associated with this view.
::fi_info * operator-> () noexcept
 Dereferencing returns the raw ::fi_info object associated with this view.
FabricInfo owned () noexcept
 Return an owned version that can be moved, copied and dereferenced safely even if the original FabricInfo object has been released.
::fi_info const * raw () const noexcept
 Returns the raw ::fi_info object associated with this view.
::fi_info * raw () noexcept
 Returns the raw ::fi_info object associated with this view.
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 in a single send operation.
std::size_t txSize () const noexcept
 Return the transmit queue size of the endpoint.

Private Member Functions

 FabricInfoView (::fi_info const *)
 Private constructor.

Private Attributes

::fi_info * _raw
friend FabricInfo
friend FabricInfoIterator< false >
friend FabricInfoIterator< true >

Detailed Description

Non-owning view of a FabricInfo. Returned when iterating over a FabricInfoList.

Definition at line 105 of file FabricInfo.hpp.

Constructor & Destructor Documentation

◆ FabricInfoView()

mxl::lib::fabrics::ofi::FabricInfoView::FabricInfoView ( ::fi_info const * raw)
private

Private constructor.

Definition at line 119 of file FabricInfo.cpp.

120 : _raw(const_cast<::fi_info*>(raw))
121 {}
::fi_info * raw() noexcept
Returns the raw fi_info object associated with this view.

Member Function Documentation

◆ endpointType()

fi_ep_type mxl::lib::fabrics::ofi::FabricInfoView::endpointType ( ) const
nodiscardnoexcept

Definition at line 168 of file FabricInfo.cpp.

169 {
170 return _raw->ep_attr->type;
171 }

◆ operator*() [1/2]

fi_info const & mxl::lib::fabrics::ofi::FabricInfoView::operator* ( ) const
nodiscardnoexcept

Dereferencing returns the raw ::fi_info object associated with this view.

Definition at line 128 of file FabricInfo.cpp.

129 {
130 return *_raw;
131 }

◆ operator*() [2/2]

fi_info & mxl::lib::fabrics::ofi::FabricInfoView::operator* ( )
nodiscardnoexcept

Dereferencing returns the raw ::fi_info object associated with this view.

Definition at line 123 of file FabricInfo.cpp.

124 {
125 return *_raw;
126 }

◆ operator->() [1/2]

fi_info const * mxl::lib::fabrics::ofi::FabricInfoView::operator-> ( ) const
nodiscardnoexcept

Dereferencing returns the raw ::fi_info object associated with this view.

Definition at line 138 of file FabricInfo.cpp.

139 {
140 return _raw;
141 }

◆ operator->() [2/2]

fi_info * mxl::lib::fabrics::ofi::FabricInfoView::operator-> ( )
nodiscardnoexcept

Dereferencing returns the raw ::fi_info object associated with this view.

Definition at line 133 of file FabricInfo.cpp.

134 {
135 return _raw;
136 }

◆ owned()

FabricInfo mxl::lib::fabrics::ofi::FabricInfoView::owned ( )
nodiscardnoexcept

Return an owned version that can be moved, copied and dereferenced safely even if the original FabricInfo object has been released.

Definition at line 153 of file FabricInfo.cpp.

154 {
155 return FabricInfo::clone(_raw);
156 }

◆ raw() [1/2]

fi_info const * mxl::lib::fabrics::ofi::FabricInfoView::raw ( ) const
nodiscardnoexcept

Returns the raw ::fi_info object associated with this view.

Definition at line 148 of file FabricInfo.cpp.

149 {
150 return _raw;
151 }

◆ raw() [2/2]

fi_info * mxl::lib::fabrics::ofi::FabricInfoView::raw ( )
noexcept

Returns the raw ::fi_info object associated with this view.

Definition at line 143 of file FabricInfo.cpp.

144 {
145 return _raw;
146 }

◆ txIovLimit()

std::size_t mxl::lib::fabrics::ofi::FabricInfoView::txIovLimit ( ) const
nodiscardnoexcept

Return the IOV limit for this fabric info, which is the maximum number of iovecs that can be posted in a single send operation.

Definition at line 158 of file FabricInfo.cpp.

159 {
160 return _raw->tx_attr->iov_limit;
161 }

◆ txSize()

std::size_t mxl::lib::fabrics::ofi::FabricInfoView::txSize ( ) const
nodiscardnoexcept

Return the transmit queue size of the endpoint.

Returns
The number of transmit queue entries. A single operation may use more than one.

Definition at line 163 of file FabricInfo.cpp.

164 {
165 return _raw->tx_attr->size;
166 }

Member Data Documentation

◆ _raw

::fi_info* mxl::lib::fabrics::ofi::FabricInfoView::_raw
private

Definition at line 159 of file FabricInfo.hpp.

◆ FabricInfo

friend mxl::lib::fabrics::ofi::FabricInfoView::FabricInfo
private

Definition at line 153 of file FabricInfo.hpp.

◆ FabricInfoIterator< false >

friend mxl::lib::fabrics::ofi::FabricInfoView::FabricInfoIterator< false >
private

Definition at line 152 of file FabricInfo.hpp.

◆ FabricInfoIterator< true >

friend mxl::lib::fabrics::ofi::FabricInfoView::FabricInfoIterator< true >
private

Definition at line 151 of file FabricInfo.hpp.


The documentation for this class was generated from the following files: