| helics 3.6.1

AsyncFedCallInfo.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 #include "../core/helicsTime.hpp"
9
10 #include <future>
11 #include <map>
12 #include <string>
13
14 namespace helics {
16 class AsyncFedCallInfo {
17 public:
19 std::future<bool> initFuture;
21 std::future<iteration_time> execFuture;
23 std::future<Time> timeRequestFuture;
25 std::future<iteration_time> timeRequestIterativeFuture;
27 std::future<void> finalizeFuture;
29 std::future<void> initIterativeFuture;
31 std::atomic<int> queryCounter{0};
33 std::map<int, std::future<std::string>> inFlightQueries;
35 std::function<bool()> asyncCheck;
36 };
37 } // namespace helics
helics::AsyncFedCallInfo
Definition: AsyncFedCallInfo.hpp:16
helics::AsyncFedCallInfo::initIterativeFuture
std::future< void > initIterativeFuture
Definition: AsyncFedCallInfo.hpp:29
helics::AsyncFedCallInfo::queryCounter
std::atomic< int > queryCounter
Definition: AsyncFedCallInfo.hpp:31
helics::AsyncFedCallInfo::execFuture
std::future< iteration_time > execFuture
Definition: AsyncFedCallInfo.hpp:21
helics::AsyncFedCallInfo::timeRequestFuture
std::future< Time > timeRequestFuture
Definition: AsyncFedCallInfo.hpp:23
helics::AsyncFedCallInfo::asyncCheck
std::function< bool()> asyncCheck
Definition: AsyncFedCallInfo.hpp:35
helics::AsyncFedCallInfo::timeRequestIterativeFuture
std::future< iteration_time > timeRequestIterativeFuture
Definition: AsyncFedCallInfo.hpp:25
helics::AsyncFedCallInfo::finalizeFuture
std::future< void > finalizeFuture
Definition: AsyncFedCallInfo.hpp:27
helics::AsyncFedCallInfo::inFlightQueries
std::map< int, std::future< std::string > > inFlightQueries
Definition: AsyncFedCallInfo.hpp:33
helics::AsyncFedCallInfo::initFuture
std::future< bool > initFuture
Definition: AsyncFedCallInfo.hpp:19
helics
the main namespace for the helics co-simulation library User functions will be in the helics namespac...
Definition: AsyncFedCallInfo.hpp:14