| chigraph master Systems programming language written for beginners in LLVM

JsonSerializer.hpp
Go to the documentation of this file.
1
4 #pragma once
5
6 #ifndef CHI_JSON_SERIALIZER_HPP
7 #define CHI_JSON_SERIALIZER_HPP
8
9 #include "chi/Fwd.hpp"
10 #include "chi/Support/json.hpp"
11
12 namespace chi {
13
16
20 nlohmann::json graphFunctionToJson(const GraphFunction& func);
21
25 nlohmann::json graphModuleToJson(const GraphModule& mod);
26
30 nlohmann::json graphStructToJson(const GraphStruct& struc);
31
33 } // namespace chi
34
35 #endif // CHI_JSON_SERIALIZER_HPP
chi::graphFunctionToJson
nlohmann::json graphFunctionToJson(const GraphFunction &func)
Serialize a GraphFunction to json.
Definition: JsonSerializer.cpp:15
Fwd.hpp
Forward declares all the chigraph data types.
chi::graphStructToJson
nlohmann::json graphStructToJson(const GraphStruct &struc)
Serialize a GraphStruct to json.
Definition: JsonSerializer.cpp:117
chi::graphModuleToJson
nlohmann::json graphModuleToJson(const GraphModule &mod)
Serialize a JsonModule to json.
Definition: JsonSerializer.cpp:97
chi
The namespace where chigraph lives.
Definition: BitcodeParser.hpp:12