 |
helics
2.8.1
|
Go to the documentation of this file.
15 #include "../core/Core.hpp"
16 #include "data_view.hpp"
48 static std::string
type() {
return typeNameString<X>(); }
55 using baseType = std::string;
61 static std::string
type() {
return "string"; }
66 #ifndef HELICS_CXX_STATIC_DEFINE
67 # include "ValueConverter_impl.hpp"
73 HELICS_CXX_EXPORT
data_type detectType3(
const unsigned char*
data);
75 HELICS_CXX_EXPORT
void convertFromBinary3(
const unsigned char*
data,
double& val);
76 HELICS_CXX_EXPORT
void convertFromBinary3(
const unsigned char*
data, std::int64_t& val);
77 HELICS_CXX_EXPORT
void convertFromBinary3(
const unsigned char*
data, std::complex<double>& val);
78 HELICS_CXX_EXPORT
void convertFromBinary3(
const unsigned char*
data,
char* val);
79 HELICS_CXX_EXPORT
void convertFromBinary3(
const unsigned char*
data, std::string& val);
80 HELICS_CXX_EXPORT
void convertFromBinary3(
const unsigned char*
data, NamedPoint& val);
82 HELICS_CXX_EXPORT
void convertFromBinary3(
const unsigned char*
data, std::vector<double>& val);
83 HELICS_CXX_EXPORT
void convertFromBinary3(
const unsigned char*
data,
double* val);
85 HELICS_CXX_EXPORT
void convertFromBinary3(
const unsigned char*
data,
86 std::vector<std::complex<double>>& val);
91 HELICS_CXX_EXPORT
size_t getDataSize3(
const unsigned char*
data);
104 if (detail::detectType3(
reinterpret_cast<const unsigned char*
>(block.
data())) ==
106 detail::convertFromBinary3(
reinterpret_cast<const unsigned char*
>(block.
data()), val);
117 if (detail::detectType3(
reinterpret_cast<const unsigned char*
>(block.
data())) ==
119 detail::convertFromBinary3(
reinterpret_cast<const unsigned char*
>(block.
data()), val);
126 static std::string
type() {
return typeNameString<X>(); }
@ data
print timing+data transmissions
Definition: loggingHelper.hpp:30
static void interpret(const data_view &block, X &val)
Definition: ValueConverter.hpp:115
Definition: core-data.hpp:31
static X interpret(const data_view &block)
Definition: ValueConverter_impl.hpp:317
Definition: ValueConverter.hpp:26
Definition: data_view.hpp:22
static X interpret(const data_view &block)
Definition: ValueConverter.hpp:101
static std::string type()
Definition: ValueConverter.hpp:126
static data_block convert(const X &val)
Definition: ValueConverter_impl.hpp:291
std::string string() const
Definition: data_view.hpp:113
Json::Value loadJsonStr(const std::string &jsonString)
Definition: JsonProcessingFunctions.cpp:50
static std::string type()
Definition: ValueConverter.hpp:48
Definition: ValueConverter.hpp:96
const char * data() const noexcept
Definition: data_view.hpp:105
the main namespace for the helics co-simulation library User functions will be in the helics namespac...
Definition: AsyncFedCallInfo.hpp:14
data_type
Definition: helicsTypes.hpp:275
struct helics_complex helics_complex