helics  3.5.2
coreTypeOperations.hpp
Go to the documentation of this file.
1 /*
2 Copyright (c) 2017-2024,
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 #include "CoreTypes.hpp"
9 
10 #include <string>
11 #include <string_view>
12 
17 namespace helics::core {
18 
20 std::string to_string(CoreType type);
26 CoreType coreTypeFromString(std::string_view type) noexcept;
27 
31 bool isCoreTypeAvailable(CoreType type) noexcept;
32 
38 bool matchingTypes(std::string_view type1, std::string_view type2);
39 
41 std::string systemInfo();
42 
43 } // namespace helics::core
CoreType
Definition: CoreTypes.hpp:46
bool isCoreTypeAvailable(CoreType type) noexcept
Definition: typeOperations.cpp:23
CoreType coreTypeFromString(std::string_view type) noexcept
Definition: typeOperations.cpp:18
std::string to_string(CoreType type)
Definition: typeOperations.cpp:13
std::string systemInfo()
Definition: typeOperations.cpp:28