 |
helics
2.8.1
|
30 constexpr base_type
baseValue()
const {
return fid; }
39 bool isValid()
const {
return (fid != invalid_fid); }
42 static constexpr base_type invalid_fid{-2
'000'000
'000}; //!< defined invalid handle
43 base_type fid{invalid_fid}; //!< the underlying index value
46 #if defined HELICS_STATIC_CORE_LIBRARY && !defined HELICS_SHARED_LIBRARY
49 std::ostream& operator<<(std::ostream& os, local_federate_id fid);
53 constexpr local_federate_id local_core_id(-259);
57 constexpr identififier_base_type invalid_interface_handle{-1'700
'000'000};
73 constexpr base_type
baseValue()
const {
return hid; }
80 bool operator>(
interface_handle id)
const noexcept {
return (hid >
id.hid); }
81 bool isValid()
const {
return (hid != invalid_handle); }
84 static constexpr base_type invalid_handle{detail::invalid_interface_handle};
85 base_type hid{invalid_handle};
88 #if defined HELICS_STATIC_CORE_LIBRARY && !defined HELICS_SHARED_LIBRARY
91 std::ostream&
operator<<(std::ostream& os, interface_handle handle);
105 hash<helics::local_federate_id::base_type>::result_type;
109 return std::hash<helics::local_federate_id::base_type>{}(key.baseValue());
119 hash<helics::interface_handle::base_type>::result_type;
123 return std::hash<helics::interface_handle::base_type>{}(key.baseValue());
hash< helics::interface_handle::base_type >::result_type result_type
the type of the return result
Definition: federate_id.hpp:119
bool operator<(local_federate_id id) const noexcept
Definition: federate_id.hpp:36
std::ostream & operator<<(std::ostream &os, const ActionMessage &command)
Definition: ActionMessage.cpp:933
Definition: federate_id.hpp:22
constexpr base_type baseValue() const
Definition: federate_id.hpp:73
Definition: global_federate_id.hpp:26
Definition: global_federate_id.hpp:68
bool operator<(interface_handle id) const noexcept
Definition: federate_id.hpp:79
bool operator!=(interface_handle id) const noexcept
Definition: federate_id.hpp:77
result_type operator()(argument_type const &key) const noexcept
Definition: federate_id.hpp:107
constexpr base_type baseValue() const
Definition: federate_id.hpp:30
result_type operator()(argument_type const &key) const noexcept
Definition: federate_id.hpp:121
bool operator==(interface_handle id) const noexcept
Definition: federate_id.hpp:75
Definition: global_federate_id.hpp:171
int32_t identififier_base_type
Definition: federate_id.hpp:15
Definition: global_federate_id.hpp:128
constexpr interface_handle direct_send_handle
this special handle can be used to directly send a message in a core
Definition: federate_id.hpp:95
constexpr local_federate_id(base_type val) noexcept
Definition: federate_id.hpp:28
hash< helics::local_federate_id::base_type >::result_type result_type
the type of the return result
Definition: federate_id.hpp:105
Definition: federate_id.hpp:65
the main namespace for the helics co-simulation library User functions will be in the helics namespac...
Definition: AsyncFedCallInfo.hpp:14
bool isValid() const
Definition: federate_id.hpp:39
constexpr local_federate_id()=default
bool operator!=(local_federate_id id) const noexcept
Definition: federate_id.hpp:34
bool operator==(local_federate_id id) const noexcept
Definition: federate_id.hpp:32
constexpr interface_handle()=default