| helics 3.6.1

InprocComms.h
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 "../CommsInterface.hpp"
10 #include "helics/helics-config.h"
11
12 #include <future>
13 #include <set>
14 #include <string>
15
16 namespace helics {
17 namespace inproc {
19 class InprocComms final: public CommsInterface {
20 public:
22 InprocComms();
24 ~InprocComms();
25
26 virtual void loadNetworkInfo(const NetworkBrokerData& netInfo) override;
27
28 private:
29 virtual void queue_rx_function() override;
30 virtual void queue_tx_function() override;
31 public:
33 int getPort() const { return -1; }
34
35 std::string getAddress() const;
36 };
37
38 } // namespace inproc
39 } // namespace helics
helics::CommsInterface
Definition: CommsInterface.hpp:25
helics::NetworkBrokerData
Definition: NetworkBrokerData.hpp:23
helics::inproc::InprocComms
Definition: InprocComms.h:19
helics::inproc::InprocComms::loadNetworkInfo
virtual void loadNetworkInfo(const NetworkBrokerData &netInfo) override
Definition: InprocComms.cpp:32
helics::inproc::InprocComms::getPort
int getPort() const
Definition: InprocComms.h:33
helics::inproc::InprocComms::~InprocComms
~InprocComms()
Definition: InprocComms.cpp:27
helics::inproc::InprocComms::InprocComms
InprocComms()
Definition: InprocComms.cpp:24
helics
the main namespace for the helics co-simulation library User functions will be in the helics namespac...
Definition: AsyncFedCallInfo.hpp:14