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
nlohmann::json graphFunctionToJson(const GraphFunction &func)
Serialize a GraphFunction to json.
Forward declares all the chigraph data types.
nlohmann::json graphStructToJson(const GraphStruct &struc)
Serialize a GraphStruct to json.
nlohmann::json graphModuleToJson(const GraphModule &mod)
Serialize a JsonModule to json.
The namespace where chigraph lives.