30 constexpr BaseType
baseValue()
const {
return fid; }
39 bool isValid()
const {
return (fid != invalid_fid); }
42 static constexpr BaseType invalid_fid{-2'000'000'000};
43 BaseType fid{invalid_fid};
46#if defined HELICS_STATIC_CORE_LIBRARY && !defined HELICS_SHARED_LIBRARY
49std::ostream&
operator<<(std::ostream& os, LocalFederateId fid);
73 constexpr BaseType
baseValue()
const {
return hid; }
80 bool operator>(
InterfaceHandle id)
const noexcept {
return (hid >
id.hid); }
81 bool isValid()
const {
return (hid != mInvalidHandle); }
86 static constexpr BaseType mInvalidHandle{detail::gInvalidInterfaceHandle};
87 BaseType hid{mInvalidHandle};
90#if defined HELICS_STATIC_CORE_LIBRARY && !defined HELICS_SHARED_LIBRARY
93std::ostream&
operator<<(std::ostream& os, InterfaceHandle handle);
104struct hash<
helics::LocalFederateId> {
108 return std::hash<helics::LocalFederateId::BaseType>{}(key.baseValue());
115struct hash<
helics::InterfaceHandle> {
119 return std::hash<helics::InterfaceHandle::BaseType>{}(key.baseValue());
Definition LocalFederateId.hpp:65
bool operator!=(InterfaceHandle id) const noexcept
Definition LocalFederateId.hpp:77
constexpr BaseType baseValue() const
Definition LocalFederateId.hpp:73
constexpr InterfaceHandle()=default
bool operator==(InterfaceHandle id) const noexcept
Definition LocalFederateId.hpp:75
BaseType * getBaseTypePointer()
Definition LocalFederateId.hpp:83
bool operator<(InterfaceHandle id) const noexcept
Definition LocalFederateId.hpp:79
Definition LocalFederateId.hpp:22
bool operator<(LocalFederateId id) const noexcept
Definition LocalFederateId.hpp:36
bool operator!=(LocalFederateId id) const noexcept
Definition LocalFederateId.hpp:34
constexpr BaseType baseValue() const
Definition LocalFederateId.hpp:30
bool operator==(LocalFederateId id) const noexcept
Definition LocalFederateId.hpp:32
bool isValid() const
Definition LocalFederateId.hpp:39
constexpr LocalFederateId()=default
constexpr LocalFederateId(BaseType val) noexcept
Definition LocalFederateId.hpp:28
the main namespace for the helics co-simulation library User functions will be in the helics namespac...
Definition AsyncFedCallInfo.hpp:14
constexpr LocalFederateId gLocalCoreId(-259)
constexpr InterfaceHandle gDirectSendHandle
this special handle can be used to directly send a message in a core
Definition LocalFederateId.hpp:96
std::ostream & operator<<(std::ostream &out, const ActionMessage &command)
Definition ActionMessage.cpp:965
int32_t IdentifierBaseType
Definition LocalFederateId.hpp:15