Changeset a07784 in git for Singular/Minor.cc
- Timestamp:
- Dec 5, 2012, 4:03:45 PM (11 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- ae900ff750a6fe0dbab70a5aa87cc48fc3dd280e
- Parents:
- b3646035aca6a8d660df952d443268649a51090907ff965ddd552fe3a981f417b2da928dca53a8f2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/Minor.cc
rb36460 ra07784 1 #include <iostream>2 3 1 #include "config.h" 4 2 #include <kernel/mod2.h> 3 4 #include "Minor.h" 5 5 6 #include <kernel/structs.h> 6 7 #include <kernel/polys.h> 7 #include <Minor.h>8 8 #include <kernel/febase.h> 9 9 10 using namespace std; 10 11 11 12 void MinorKey::reset() … … 114 115 void MinorKey::print() const 115 116 { 116 cout << this->toString();117 PrintS(this->toString().c_str()); 117 118 } 118 119 … … 145 146 } 146 147 /* We should never reach this line of code. */ 147 ass ert(false);148 assume(false); 148 149 } 149 150 … … 176 177 } 177 178 /* We should never reach this line of code. */ 178 ass ert(false);179 assume(false); 179 180 } 180 181 … … 198 199 } 199 200 } 200 return;201 201 } 202 202 … … 220 220 } 221 221 } 222 return;223 222 } 224 223 … … 251 250 } 252 251 /* We should never reach this line of code. */ 253 ass ert(false);252 assume(false); 254 253 } 255 254 … … 282 281 } 283 282 /* We should never reach this line of code. */ 284 ass ert(false);283 assume(false); 285 284 } 286 285 … … 439 438 bool MinorKey::operator==(const MinorKey& mk) const 440 439 { 441 ass ert(false);440 assume(false); 442 441 return this->compare(mk) == 0; 443 442 } … … 447 446 bool MinorKey::operator<(const MinorKey& mk) const 448 447 { 449 ass ert(false);448 assume(false); 450 449 return this->compare(mk) == -1; 451 450 } … … 833 832 int MinorValue::getWeight () const 834 833 { 835 ass ert(false); /* must be overridden in derived classes */834 assume(false); /* must be overridden in derived classes */ 836 835 return 0; 837 836 } … … 841 840 bool MinorValue::operator==(const MinorValue& mv) const 842 841 { 843 ass ert(false);842 assume(false); 844 843 return (this == &mv); /* compare addresses of both objects */ 845 844 } … … 847 846 string MinorValue::toString () const 848 847 { 849 ass ert(false); /* must be overridden in derived classes */848 assume(false); /* must be overridden in derived classes */ 850 849 return ""; 851 850 } … … 855 854 bool MinorValue::operator<(const MinorValue& mv) const 856 855 { 857 ass ert(false);856 assume(false); 858 857 return (this < &mv); /* compare addresses of both objects */ 859 858 } … … 896 895 void MinorValue::print() const 897 896 { 898 cout << this->toString();897 PrintS(this->toString().c_str()); 899 898 } 900 899
Note: See TracChangeset
for help on using the changeset viewer.