source: git/Singular/InternPoly.cc @ f2dcd1

spielwiese
Last change on this file since f2dcd1 was f2dcd1, checked in by Frank Seelisch <seelisch@…>, 15 years ago
more stuff for C++ wrapper implementation git-svn-id: file:///usr/local/Singular/svn/trunk@12152 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 1.1 KB
Line 
1#include "mod2.h"
2
3#ifdef HAVE_WRAPPERS
4
5#include "InternPoly.h"
6#include "Wrappers.h"
7#include <iostream>
8
9InternPoly::InternPoly (const RingWrapper& r):m_ring(r)
10{
11  +prpr > "InternPoly default constructor";
12  increment();
13}
14
15InternPoly::InternPoly (const InternPoly& ip):m_ring(ip.getRing())
16{
17  assume(false); // shallow copy constructor should never be called
18}
19
20InternPoly* InternPoly::deepCopy () const
21{
22  assume(false); // deep copy constructor should never be called
23}
24
25InternPoly::~InternPoly()
26{
27  +prpr > "InternPoly destructor";
28}
29
30char* InternPoly::toString () const
31{
32  assume(false); // should be overridden by each derived class
33}
34
35const RingWrapper& InternPoly::getRing () const
36{
37  return m_ring;
38}
39
40void InternPoly::add (const InternPoly* ip) {
41  if (this->getRing().isCompatible(ip->getRing()))
42  {
43    this->addCompatible(ip);
44  }
45  else
46  {
47    assume(false);
48  }
49}
50
51int InternPoly::getPolyType () const
52{
53  return UNSPECIFIED_POLY_TYPE;
54}
55
56void InternPoly::addCompatible (const InternPoly* ip)
57{
58  assume(false); // should be overridden by each derived class
59}
60
61#endif // HAVE_WRAPPERS
Note: See TracBrowser for help on using the repository browser.