fieker-DuValspielwiese
Last change
on this file since c36fda was
c36fda,
checked in by Oleksandr Motsak <motsak@…>, 10 years ago
|
Moved all the outdated modgen related stuff to /old_modgen/ for now
|
-
Property mode set to
100644
|
File size:
668 bytes
|
Line | |
---|
1 | #ifndef RING_WRAP_HEADER |
---|
2 | #define RING_WRAP_HEADER |
---|
3 | #include "ring.h" |
---|
4 | #include "grammar.h" |
---|
5 | #include "subexpr.h" |
---|
6 | #include "ipid.h" |
---|
7 | #include <boost/intrusive_ptr.hpp> |
---|
8 | #include "Number.h" |
---|
9 | using namespace boost; |
---|
10 | //typedef intrusive_ptr<ip_sring> Ring; |
---|
11 | // inline void intrusive_ptr_add_ref(ring r){ |
---|
12 | // r->ref++; |
---|
13 | // } |
---|
14 | // inline void intrusive_ptr_release(ring r){ |
---|
15 | // r->ref--; |
---|
16 | // if (r->ref<=0) rDelete(r); |
---|
17 | // } |
---|
18 | |
---|
19 | //typedef boosRing |
---|
20 | class Ring{ |
---|
21 | public: |
---|
22 | intrusive_ptr<ip_sring> pimpl; |
---|
23 | Ring(ring r=currRing): pimpl(r){ |
---|
24 | |
---|
25 | } |
---|
26 | Ring(const Ring& r2):pimpl(r2.pimpl){ |
---|
27 | |
---|
28 | } |
---|
29 | ~Ring(){ |
---|
30 | |
---|
31 | } |
---|
32 | |
---|
33 | }; |
---|
34 | void export_ring(); |
---|
35 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.