#include "kernel/mod2.h"
#include <boost/python.hpp>
#include "Singular/ipshell.h"
#include "ring_wrap.h"
#include "poly_wrap.h"
Go to the source code of this file.
◆ export_ring()
Definition at line 32 of file ring_wrap.cc.
33{
34boost::python::class_<Ring>("Ring", "reference to a Singular ring")
36 .def(
"set",
ring_set,
"equivalent to the singular command setring, which is not mapped as it is a command")
37 .def(boost::python::init <>());
38}
static boost::python::object Ring_as_str(const Ring &r)
◆ Ring_as_str()
static boost::python::object Ring_as_str |
( |
const Ring & |
r | ) |
|
|
static |
Definition at line 7 of file ring_wrap.cc.
8{
9 using boost::python::str;
13 return boost::python::str(out,strlen(out));
14}
intrusive_ptr< ip_sring > pimpl
void StringSetS(const char *st)
void rWrite(ring r, BOOLEAN details)
◆ ring_set()
void ring_set |
( |
Ring & |
R | ) |
|
Definition at line 15 of file ring_wrap.cc.
16{
20 {
21 char name_buffer[100];
23 ending++;
24 sprintf(name_buffer, "PYTHON_RING_VAR%d",ending);
27 r->ref++;
28 }
31}
idhdl enterid(const char *s, int lev, int t, idhdl *root, BOOLEAN init, BOOLEAN search)
idhdl rFindHdl(ring r, idhdl n)