Changeset a388ae in git for Singular/CanonicalPoly.cc


Ignore:
Timestamp:
Oct 21, 2009, 5:36:00 PM (15 years ago)
Author:
Frank Seelisch <seelisch@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
9b4a332909ecddda93d19e235977388831620db1
Parents:
bb503c7363e3c90a3b0c5ae93374d5b7b20cc34a
Message:
added doxygen-like comments


git-svn-id: file:///usr/local/Singular/svn/trunk@12198 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/CanonicalPoly.cc

    rbb503c7 ra388ae  
    33#ifdef HAVE_WRAPPERS
    44
     5#include <iostream>
    56#include "structs.h"
    67#include "polys.h"
     8#include "Wrappers.h"
    79#include "CanonicalPoly.h"
    8 #include "Wrappers.h"
    9 #include <iostream>
    1010
    1111CanonicalPoly::CanonicalPoly (const SingularPoly& sp, const RingWrapper& r):InternPoly(r)
     
    1717
    1818CanonicalPoly::CanonicalPoly (const int i, const RingWrapper& r):InternPoly(r)
    19 { // this method seems to work in char 0 only; is this due to a malfunction of p_ISet?
     19{
    2020  +prpr > "CanonicalPoly constructor with int argument = " < i;
    2121  m_poly = p_ISet(i, r.getSingularRing());
     
    2525{
    2626  +prpr > "CanonicalPoly destructor, object = " < this->toString();
    27   //p_Delete(&m_poly, m_ring.getSingularRing());
    2827}
    2928
     
    3635void CanonicalPoly::addCompatible (const InternPoly* ip)
    3736{
    38   if (ip->getPolyType() == 1)
     37  if (ip->getPolyType() == CANONICAL_POLY_TYPE)
    3938  {
    4039    const CanonicalPoly* pcp = static_cast<const CanonicalPoly*>(ip);
     
    4948  }
    5049  else
    51   {
    5250    assume(false);
    53   }
    5451}
    5552
     
    6764{
    6865  +prpr > "creating a deep copy of CanonicalPoly, argument = " < this->toString();
    69   SingularPoly sp = p_Copy(this->getSingularPoly(), this->getRing().getSingularRing());  // SINGULAR poly is deeply copied.
    70   CanonicalPoly* pcp = new CanonicalPoly(sp, this->getRing());  // ring is not deeply copied!
     66  SingularPoly sp = p_Copy(this->getSingularPoly(), this->getRing().getSingularRing()); /* SINGULAR poly is deeply copied. */
     67  CanonicalPoly* pcp = new CanonicalPoly(sp, this->getRing()); /* ring is not deeply copied! */
    7168  return pcp;
    7269}
    7370
    74 #endif // HAVE_WRAPPERS
     71#endif
     72/* HAVE_WRAPPERS */
Note: See TracChangeset for help on using the changeset viewer.