Loading...
Searching...
No Matches
ring_wrap.h
Go to the documentation of this file.
#ifndef RING_WRAP_HEADER
#define RING_WRAP_HEADER
#include "polys/monomials/ring.h"
#include "Singular/grammar.h"
#include "Singular/subexpr.h"
#include "Singular/ipid.h"
#include <boost/intrusive_ptr.hpp>
#include "Number.h"
using namespace boost;
//typedef intrusive_ptr<ip_sring> Ring;
// inline void intrusive_ptr_add_ref(ring r){
// r->ref++;
// }
// inline void intrusive_ptr_release(ring r){
// r->ref--;
// if (r->ref<=0) rDelete(r);
// }
//typedef boosRing
class Ring
{
public:
intrusive_ptr<ip_sring> pimpl;
Ring(ring r=currRing): pimpl(r){}
Ring(const Ring& r2):pimpl(r2.pimpl){}
~Ring(){}
};
void export_ring();
#endif
Number.h
Ring::~Ring
~Ring()
Definition ring_wrap.h:26
Ring::Ring
Ring(ring r=currRing)
Definition ring_wrap.h:24
Ring::Ring
Ring(const Ring &r2)
Definition ring_wrap.h:25
Ring::pimpl
intrusive_ptr< ip_sring > pimpl
Definition ring_wrap.h:23
grammar.h
ipid.h
currRing
VAR ring currRing
Widely used global variable which specifies the current polynomial ring for Singular interpreter and ...
Definition polys.cc:13
ring.h
export_ring
void export_ring()
Definition ring_wrap.cc:32
subexpr.h