File SyscComm.hpp
Last update: 17.07.2025Location: SyscComm.hpp
Classes
Namespaces
Includes
- SystemCouplingParticipant/LibraryType.hpp
- SystemCouplingParticipant/CommonTypes.hpp
-
graph LR
4["string"]
3["SystemCouplingParticipant/CommonTypes.hpp"]
2["SystemCouplingParticipant/LibraryType.hpp"]
1["SyscComm.hpp"]
click 1 "SyscComm_8hpp.md#SyscComm_8hpp"
1 --> 2
1 --> 3
1 --> 4
Source
/*
* Copyright ANSYS, Inc. Unauthorized use, distribution, or duplication is prohibited.
*/
#pragma once
#include "SystemCouplingParticipant/LibraryType.hpp"
#include "SystemCouplingParticipant/CommonTypes.hpp"
#include <string>
namespace sysc {
struct HostAndPort {
HostAndPort() = default;
HostAndPort(Host host, Port port) :
host(std::move(host)), port(port) {}
HostAndPort(Port port) :
port(port) {}
Host host;
Port port{0};
};
HostAndPort SYSTEM_COUPLING_PARTICIPANT_DLL createRootServer(Host host, Port port);
bool SYSTEM_COUPLING_PARTICIPANT_DLL isRootServerCreated();
int SYSTEM_COUPLING_PARTICIPANT_DLL getMyRank();
int SYSTEM_COUPLING_PARTICIPANT_DLL getNumRanks();
double SYSTEM_COUPLING_PARTICIPANT_DLL reduceMax(double value);
std::uint64_t SYSTEM_COUPLING_PARTICIPANT_DLL reduceSum(std::uint64_t value);
bool SYSTEM_COUPLING_PARTICIPANT_DLL reduceAnd(bool value);
} // namespace sysc