helics 3.7.0
Loading...
Searching...
No Matches
AsyncFedCallInfo.hpp
1/*
2Copyright (c) 2017-2026,
3Battelle Memorial Institute; Lawrence Livermore National Security, LLC; Alliance for Energy
4Innovation LLC. See the top-level NOTICE for additional details. All rights reserved.
5SPDX-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
14namespace helics {
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
Definition AsyncFedCallInfo.hpp:16
std::future< void > initIterativeFuture
Definition AsyncFedCallInfo.hpp:29
std::atomic< int > queryCounter
Definition AsyncFedCallInfo.hpp:31
std::future< iteration_time > execFuture
Definition AsyncFedCallInfo.hpp:21
std::future< Time > timeRequestFuture
Definition AsyncFedCallInfo.hpp:23
std::function< bool()> asyncCheck
Definition AsyncFedCallInfo.hpp:35
std::future< iteration_time > timeRequestIterativeFuture
Definition AsyncFedCallInfo.hpp:25
std::future< void > finalizeFuture
Definition AsyncFedCallInfo.hpp:27
std::map< int, std::future< std::string > > inFlightQueries
Definition AsyncFedCallInfo.hpp:33
std::future< bool > initFuture
Definition AsyncFedCallInfo.hpp:19
the main namespace for the helics co-simulation library User functions will be in the helics namespac...
Definition AsyncFedCallInfo.hpp:14