Changeset a07784 in git for Singular/Minor.cc


Ignore:
Timestamp:
Dec 5, 2012, 4:03:45 PM (11 years ago)
Author:
Alexander Dreyer <adreyer@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
ae900ff750a6fe0dbab70a5aa87cc48fc3dd280e
Parents:
b3646035aca6a8d660df952d443268649a51090907ff965ddd552fe3a981f417b2da928dca53a8f2
Message:
Merge branch 'spielwiese' of github.com:Singular/Sources into spielwiese-pyobject
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/Minor.cc

    rb36460 ra07784  
    1 #include <iostream>
    2 
    31#include "config.h"
    42#include <kernel/mod2.h>
     3
     4#include "Minor.h"
     5
    56#include <kernel/structs.h>
    67#include <kernel/polys.h>
    7 #include <Minor.h>
    88#include <kernel/febase.h>
    99
     10using namespace std;
    1011
    1112void MinorKey::reset()
     
    114115void MinorKey::print() const
    115116{
    116   cout << this->toString();
     117  PrintS(this->toString().c_str());
    117118}
    118119
     
    145146  }
    146147  /* We should never reach this line of code. */
    147   assert(false);
     148  assume(false);
    148149}
    149150
     
    176177  }
    177178  /* We should never reach this line of code. */
    178   assert(false);
     179  assume(false);
    179180}
    180181
     
    198199    }
    199200  }
    200   return;
    201201}
    202202
     
    220220    }
    221221  }
    222   return;
    223222}
    224223
     
    251250  }
    252251  /* We should never reach this line of code. */
    253   assert(false);
     252  assume(false);
    254253}
    255254
     
    282281  }
    283282  /* We should never reach this line of code. */
    284   assert(false);
     283  assume(false);
    285284}
    286285
     
    439438bool MinorKey::operator==(const MinorKey& mk) const
    440439{
    441   assert(false);
     440  assume(false);
    442441  return this->compare(mk) == 0;
    443442}
     
    447446bool MinorKey::operator<(const MinorKey& mk) const
    448447{
    449   assert(false);
     448  assume(false);
    450449  return this->compare(mk) == -1;
    451450}
     
    833832int MinorValue::getWeight () const
    834833{
    835   assert(false);  /* must be overridden in derived classes */
     834  assume(false);  /* must be overridden in derived classes */
    836835  return 0;
    837836}
     
    841840bool MinorValue::operator==(const MinorValue& mv) const
    842841{
    843   assert(false);
     842  assume(false);
    844843  return (this == &mv);  /* compare addresses of both objects */
    845844}
     
    847846string MinorValue::toString () const
    848847{
    849   assert(false);  /* must be overridden in derived classes */
     848  assume(false);  /* must be overridden in derived classes */
    850849  return "";
    851850}
     
    855854bool MinorValue::operator<(const MinorValue& mv) const
    856855{
    857   assert(false);
     856  assume(false);
    858857  return (this < &mv);  /* compare addresses of both objects */
    859858}
     
    896895void MinorValue::print() const
    897896{
    898   cout << this->toString();
     897  PrintS(this->toString().c_str());
    899898}
    900899
Note: See TracChangeset for help on using the changeset viewer.