| helics 3.6.1

FilterCoordinator.hpp
1 /*
2 Copyright (c) 2017-2025,
3 Battelle Memorial Institute; Lawrence Livermore National Security, LLC; Alliance for Sustainable
4 Energy, LLC. See the top-level NOTICE for additional details. All rights reserved.
5 SPDX-License-Identifier: BSD-3-Clause
6 */
7 #pragma once
8
9 #include "GlobalFederateId.hpp"
10
11 #include <vector>
12 namespace helics {
13 class FilterInfo;
17 class FilterCoordinator {
18 public:
19 std::vector<FilterInfo*> sourceFilters;
20 FilterInfo* destFilter = nullptr;
21
22 std::vector<FilterInfo*>
23 allSourceFilters;
24 std::vector<FilterInfo*> cloningDestFilters;
25 bool hasSourceFilters = false;
26 bool hasDestFilters = false;
27 int ongoingSourceTransactions =
28 0;
29 int ongoingDestTransactions =
30 0;
32 void closeFilter(GlobalHandle filt);
33 };
34 } // namespace helics
helics::FilterCoordinator
Definition: FilterCoordinator.hpp:17
helics::FilterCoordinator::hasSourceFilters
bool hasSourceFilters
indicator that an endpoint has source filters
Definition: FilterCoordinator.hpp:25
helics::FilterCoordinator::hasDestFilters
bool hasDestFilters
indicator that an endpoint has a destination filter
Definition: FilterCoordinator.hpp:26
helics::FilterCoordinator::ongoingSourceTransactions
int ongoingSourceTransactions
counter for the number of filtered message returns expected
Definition: FilterCoordinator.hpp:27
helics::FilterCoordinator::destFilter
FilterInfo * destFilter
the destination operator handle
Definition: FilterCoordinator.hpp:20
helics::FilterCoordinator::allSourceFilters
std::vector< FilterInfo * > allSourceFilters
storage for all the source filters before sorting
Definition: FilterCoordinator.hpp:23
helics::FilterCoordinator::closeFilter
void closeFilter(GlobalHandle filt)
Definition: FilterCoordinator.cpp:13
helics::FilterCoordinator::cloningDestFilters
std::vector< FilterInfo * > cloningDestFilters
storage for cloning destination filters
Definition: FilterCoordinator.hpp:24
helics::FilterCoordinator::ongoingDestTransactions
int ongoingDestTransactions
counter for the number of filtered message returns expected on Destination
Definition: FilterCoordinator.hpp:29
helics::FilterCoordinator::sourceFilters
std::vector< FilterInfo * > sourceFilters
ordered set of source operators
Definition: FilterCoordinator.hpp:19
helics::FilterInfo
Definition: FilterInfo.hpp:29
helics::GlobalHandle
Definition: GlobalFederateId.hpp:147
helics
the main namespace for the helics co-simulation library User functions will be in the helics namespac...
Definition: AsyncFedCallInfo.hpp:14