MCPcopy Create free account
hub / github.com/Singular/Singular / export_interpreter

Function export_interpreter

Singular/dyn_modules/python/interpreter_support.cc:529–564  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

527 return idhdl_wrap(ggetid(n));
528}
529void export_interpreter()
530{
531 def("get_idhdl", get_idhdl);
532 boost::python::class_<arg_list>("i_arg_list")
533 .def("append", &arg_list::appendPoly)
534 .def("append", &arg_list::appendArray)
535 .def("append", &arg_list::appendNumber)
536 .def("append", &arg_list::appendint)
537 .def("append", &arg_list::appendIdeal)
538 .def("append", &arg_list::appendModule)
539 .def("append", &arg_list::appendPrelist)
540 .def("append", &arg_list::appendVector)
541 .def("append", &arg_list::appendRing)
542 .def("append", &arg_list::appendIntvec)
543 .def("append", &arg_list::appendString);
544 boost::python::class_<idhdl_wrap>("interpreter_id")
545 .def("is_zero", &idhdl_wrap::is_zero)
546 .def("is_proc", &idhdl_wrap::id_is_proc)
547 .def("print_type", &idhdl_wrap::print_type)
548 .def("write", &idhdl_wrap::writePoly)
549 .def("write", &idhdl_wrap::writeArray)
550 .def("write", &idhdl_wrap::writeNumber)
551 .def("write", &idhdl_wrap::writeint)
552 .def("write", &idhdl_wrap::writeIdeal)
553 .def("write", &idhdl_wrap::writeModule)
554 .def("write", &idhdl_wrap::writeVector)
555 .def("write", &idhdl_wrap::writeList)
556 .def("write", &idhdl_wrap::writeString)
557 .def("write", &idhdl_wrap::writeIntvec)
558 .def("write", &idhdl_wrap::writeRing)
559 .def("__str__", idhdl_as_str);
560 def("call_interpreter_method",call_interpreter_method);
561 def("cbm",call_builtin_method_general);
562 def("transfer_to_python",buildPyObjectFromIdhdl);
563 def("is_builtin", is_builtin);
564}
565#endif

Callers 1

BOOST_PYTHON_MODULEFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected