My Project
Functions
interpreter_support.h File Reference

Go to the source code of this file.

Functions

void export_interpreter ()
 

Function Documentation

◆ export_interpreter()

void export_interpreter ( )

Definition at line 529 of file interpreter_support.cc.

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 }
void appendint(int p)
void appendArray(const NumpyArrayType &f)
void appendPrelist(arg_list &l)
void appendNumber(const Number &p)
void appendVector(const Vector &p)
void appendString(const char *s)
void appendIntvec(Intvec &iv)
void appendModule(const Module &p)
void appendPoly(const Poly &p)
void appendIdeal(const Ideal &p)
void appendRing(const Ring &r)
void writeIdeal(const Ideal &p)
void writeList(arg_list &f)
void writePoly(const Poly &p)
void writeString(const char *s)
void writeNumber(const Number &p)
void writeIntvec(const Intvec &iv)
void writeVector(const Vector &p)
void writeArray(const NumpyArrayType &f)
void writeRing(const Ring &r)
void writeModule(const Module &p)
void writeint(int p)
bool is_builtin(const char *name)
boost::python::object call_builtin_method_general(const char *name, arg_list &l)
static boost::python::str idhdl_as_str(idhdl_wrap iw)
static idhdl_wrap get_idhdl(const char *n)
boost::python::object call_interpreter_method(const idhdl_wrap &proc, const arg_list &args)
boost::python::object buildPyObjectFromIdhdl(const idhdl_wrap &id)