helics 3.7.0
Loading...
Searching...
No Matches
coreTypeOperations.hpp
Go to the documentation of this file.
1/*
2Copyright (c) 2017-2026,
3Battelle Memorial Institute; Lawrence Livermore National Security, LLC; Alliance for Energy
4Innovation LLC. See the top-level NOTICE for additional details. All rights reserved.
5SPDX-License-Identifier: BSD-3-Clause
6*/
7#pragma once
8#include "CoreTypes.hpp"
9
10#include <string>
11#include <string_view>
12#include <utility>
13#include <vector>
14
19namespace helics::core {
20
22std::string to_string(CoreType type);
28CoreType coreTypeFromString(std::string_view type) noexcept;
29
33bool isCoreTypeAvailable(CoreType type) noexcept;
34
40bool matchingTypes(std::string_view type1, std::string_view type2);
41
43std::string systemInfo();
44
46std::pair<CoreType, std::string> extractCoreType(const std::string& configureString);
47std::pair<CoreType, std::string> extractCoreType(const std::vector<std::string>& args);
48std::pair<CoreType, std::string> extractCoreType(int argc, char* argv[]);
49
50} // namespace helics::core
CoreType
Definition CoreTypes.hpp:46
bool isCoreTypeAvailable(CoreType type) noexcept
Definition typeOperations.cpp:25
CoreType coreTypeFromString(std::string_view type) noexcept
Definition typeOperations.cpp:20
std::string to_string(CoreType type)
Definition typeOperations.cpp:15
std::string systemInfo()
Definition typeOperations.cpp:30