Go to the documentation of this file.
30 #include "../../json/Data.h"
38 void setupAronMetaInformationForType(nlohmann::json& json,
const std::string& type,
const Path& p)
60 auto o = extends ? extends.value() : nlohmann::json();
74 int elements = shape.empty() ? 0 : std::accumulate(std::begin(shape), std::end(shape), 1, std::multiplies<int>());
75 std::vector<unsigned char> d = std::vector<unsigned char>(elements);
76 memcpy(d.data(),
data, elements);
nlohmann::json writeInt(const int i, const Path &p=Path()) override
const std::string PATH_SLUG
static data::Descriptor GetDescriptor(Input &n)
data::Descriptor getDescriptor(ReturnTypeConst &input) final
const std::string DOUBLE_TYPENAME_SLUG
const std::string INT_TYPENAME_SLUG
const std::string VALUE_SLUG
const std::string FLOAT_TYPENAME_SLUG
nlohmann::json writeString(const std::string &i, const Path &p=Path()) override
nlohmann::json writeFloat(const float i, const Path &p=Path()) override
const std::string DATA_SLUG
const std::string DICT_TYPENAME_SLUG
nlohmann::json writeNDArray(const std::vector< int > &shape, const std::string &typeAsString, const unsigned char *data, const Path &p=Path()) override
nlohmann::json writeBool(const bool i, const Path &p=Path()) override
nlohmann::json writeDouble(const double i, const Path &p=Path()) override
const std::string NDARRAY_TYPENAME_SLUG
const std::string BOOL_TYPENAME_SLUG
const std::string LIST_TYPENAME_SLUG
const std::string DIMENSIONS_SLUG
ReaderT::InputType & input
const std::string STRING_TYPENAME_SLUG
nlohmann::json writeDict(const std::map< std::string, nlohmann::json > &elements, const std::optional< nlohmann::json > &extends=std::nullopt, const Path &p=Path()) override
const std::string USED_TYPE_SLUG
nlohmann::json writeLong(const long i, const Path &p=Path()) override
typename std::add_const< ReturnType >::type ReturnTypeConst
const std::string TYPE_SLUG
const std::string LONG_TYPENAME_SLUG
const std::string ELEMENTS_SLUG
nlohmann::json writeList(const std::vector< nlohmann::json > &elements, const Path &p=Path()) override
std::vector< std::string > getPath() const