MXL : Media eXchange Layer
MXL
Loading...
Searching...
No Matches
FabricInterfaceList.cpp
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2026 Contributors to the Media eXchange Layer project.
2// SPDX-License-Identifier: Apache-2.0
4#include <ranges>
5#include <utility>
6
8{
10
12 {
13 _interfaces.push_back(std::move(iface));
14 }
15
17 {
18 _interfaces.clear();
19 }
20
22 {
23 auto previousNode = std::add_pointer_t<::mxlFabricsInterfaceList>{nullptr};
24 for (auto& _interface : std::ranges::reverse_view(_interfaces))
25 {
26 previousNode = _interface.toRawLinkedListNode(previousNode);
27 }
28
29 return previousNode;
30 }
31
33 {
34 while (list)
35 {
37 }
38 }
39}
::mxlFabricsInterfaceList * freeRawLinkedListNode(::mxlFabricsInterfaceList *)
std::vector< FabricInterfaceDescription > _interfaces
::mxlFabricsInterfaceList * toRawLinkedList() noexcept
void push(FabricInterfaceDescription iface)
static void freeRawLinkedList(::mxlFabricsInterfaceList *) noexcept
struct mxlFabricsInterfaceList_t mxlFabricsInterfaceList
Definition fabrics.h:116