helics  3.0.1
FederateIdExtra.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 
8 #pragma once
9 #include "GlobalFederateId.hpp"
10 #include "gmlc/containers/MapTraits.hpp"
11 
14 template<>
15 struct is_easily_hashable<helics::InterfaceHandle> {
16  static constexpr bool value = true;
17 };
18 
21 template<>
22 struct is_easily_hashable<helics::GlobalFederateId> {
23  static constexpr bool value = true;
24 };
25 
28 template<>
29 struct is_easily_hashable<helics::LocalFederateId> {
30  static constexpr bool value = true;
31 };
32 
35 template<>
36 struct is_easily_hashable<helics::GlobalBrokerId> {
37  static constexpr bool value = true;
38 };
39 
42 template<>
43 struct is_easily_hashable<helics::route_id> {
44  static constexpr bool value = true;
45 };
46 
49 template<>
50 struct is_easily_hashable<helics::GlobalHandle> {
51  static constexpr bool value = true;
52 };
helicsCore.h
Common functions for the HELICS C api.
helics::getFedObject
FedObject * getFedObject(HelicsFederate fed, HelicsError *err) noexcept
Definition: FederateExport.cpp:27
helics::ValueFederate
Definition: application_api/ValueFederate.hpp:25
HelicsFederate
void * HelicsFederate
Definition: api-data.h:60
HELICS_ERROR_INVALID_OBJECT
@ HELICS_ERROR_INVALID_OBJECT
Definition: helics_enums.h:230
helics::MessageFederate
Definition: application_api/MessageFederate.hpp:22
helics::FedObject
Definition: api_objects.h:83
HelicsError
Definition: api-data.h:160
helics
the main namespace for the helics co-simulation library User functions will be in the helics namespac...
Definition: AsyncFedCallInfo.hpp:14
helics::Federate
Definition: application_api/Federate.hpp:47