source: git/Singular/InternPoly.cc @ a388ae

spielwiese
Last change on this file since a388ae was a388ae, checked in by Frank Seelisch <seelisch@…>, 14 years ago
added doxygen-like comments git-svn-id: file:///usr/local/Singular/svn/trunk@12198 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 1.2 KB
Line 
1#include "mod2.h"
2
3#ifdef HAVE_WRAPPERS
4
5#include <iostream>
6#include "Wrappers.h"
7#include "InternPoly.h"
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    this->addCompatible(ip);
43  else
44  {
45    +prpr > "addition of objects in incompatible rings encountered";
46    assume(false);
47  }
48}
49
50int InternPoly::getPolyType () const
51{
52  return UNSPECIFIED_POLY_TYPE;
53}
54
55void InternPoly::addCompatible (const InternPoly* ip)
56{
57  assume(false); /* should be overridden by each derived class */
58}
59
60#endif
61/* HAVE_WRAPPERS */
Note: See TracBrowser for help on using the repository browser.