26 #ifndef CASADI_GRAPH_MODEL_IMPL_HPP
27 #define CASADI_GRAPH_MODEL_IMPL_HPP
29 #include "graph_model.hpp"
35 class GraphModelInternal;
36 class GraphBuilderInternal;
47 class CASADI_EXPORT GraphModel :
public SharedObject {
50 std::string type_name()
const {
return "GraphModel"; }
56 explicit GraphModel(
const std::string& format,
57 const std::vector<uint8_t>& model_data = std::vector<uint8_t>(),
61 std::string format()
const;
64 void fill_metadata(GraphBuilderInternal& gb)
const;
67 Function import_symbolic(
const GraphBuilderInternal& gb,
const std::string& name)
const;
70 std::vector<uint8_t> export_symbolic(
const Function& f,
const Dict& opts =
Dict());
73 const std::vector<uint8_t>& model_data()
const;
77 GraphModelInternal* operator->();
78 const GraphModelInternal* operator->()
const;
79 GraphModelInternal* get()
const;
83 static bool has_plugin(
const std::string& name);
86 static void load_plugin(
const std::string& name);
89 static std::string doc(
const std::string& name);
GenericType::Dict Dict
C++ equivalent of Python's dict or MATLAB's struct.