fieker-DuValspielwiese
Last change
on this file since 9cb530 was
781efb,
checked in by Frank Seelisch <seelisch@…>, 15 years ago
|
additional files for test code (minors, C++ wrappers)
git-svn-id: file:///usr/local/Singular/svn/trunk@12113 2c84dea3-7e68-4137-9b89-c4e89433aadc
|
-
Property mode set to
100644
|
File size:
480 bytes
|
Line | |
---|
1 | #include "mod2.h" |
---|
2 | #include "Poly.h" |
---|
3 | |
---|
4 | using namespace std; |
---|
5 | |
---|
6 | Poly::~Poly() |
---|
7 | { |
---|
8 | std::cout << "\n Poly destructor for '"; |
---|
9 | this->print(); |
---|
10 | std::cout << "'"; |
---|
11 | InternPoly* p_ip = this->getInternPoly(); |
---|
12 | p_ip->decrement(); |
---|
13 | if (p_ip->getCounter() == 0) delete p_ip; |
---|
14 | } |
---|
15 | |
---|
16 | Poly::Poly(const Poly& p) |
---|
17 | { |
---|
18 | std::cout << "\n creating a shallow copy of Poly '"; |
---|
19 | p.print(); |
---|
20 | std::cout << "'"; |
---|
21 | InternPoly* p_ip = p.getInternPoly(); |
---|
22 | p_ip->increment(); |
---|
23 | m_pInternPoly = p_ip; |
---|
24 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.