helics  3.0.1
AsyncFedCallInfo.hpp
1 /*
2 Copyright (c) 2017-2021,
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 {
17  public:
18  std::future<void> initFuture;
19  std::future<IterationResult> execFuture;
20  std::future<Time> timeRequestFuture;
21  std::future<iteration_time>
23  std::future<void> finalizeFuture;
24  std::atomic<int> queryCounter{0};
25  std::map<int, std::future<std::string>>
27 };
28 } // namespace helics
helics::AsyncFedCallInfo::timeRequestIterativeFuture
std::future< iteration_time > timeRequestIterativeFuture
Definition: AsyncFedCallInfo.hpp:22
helics::AsyncFedCallInfo::execFuture
std::future< IterationResult > execFuture
Definition: AsyncFedCallInfo.hpp:19
helics::AsyncFedCallInfo::finalizeFuture
std::future< void > finalizeFuture
Definition: AsyncFedCallInfo.hpp:23
helics::AsyncFedCallInfo
Definition: AsyncFedCallInfo.hpp:16
helics
the main namespace for the helics co-simulation library User functions will be in the helics namespac...
Definition: AsyncFedCallInfo.hpp:14
helics::AsyncFedCallInfo::timeRequestFuture
std::future< Time > timeRequestFuture
Definition: AsyncFedCallInfo.hpp:20
helics::AsyncFedCallInfo::queryCounter
std::atomic< int > queryCounter
counter for the number of queries
Definition: AsyncFedCallInfo.hpp:24
helics::AsyncFedCallInfo::inFlightQueries
std::map< int, std::future< std::string > > inFlightQueries
the queries that are actually in flight at a given time
Definition: AsyncFedCallInfo.hpp:26