Changeset 9bb97e in git for kernel/f5data.cc
- Timestamp:
- Feb 6, 2009, 9:12:35 PM (14 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
- Children:
- fcb80223d452f79f3b3e1a62b71d291a5fc64943
- Parents:
- b3e45f80f34104e744829011d4460dcee8e1e365
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/f5data.cc
rb3e45f r9bb97e 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: f5data.cc,v 1. 2 2009-02-03 20:55:43ederc Exp $ */4 /* $Id: f5data.cc,v 1.3 2009-02-06 20:12:35 ederc Exp $ */ 5 5 /* 6 6 * ABSTRACT: lpolynomial definition … … 30 30 ================================================================ 31 31 */ 32 LPoly::LPoly(poly * t,int* i,poly* p) {33 set(t,i,p );32 LPoly::LPoly(poly t,int i,poly p,bool d) { 33 set(t,i,p,d); 34 34 } 35 35 36 void LPoly::setPoly(poly *p) {37 polynomial = *p;36 void LPoly::setPoly(poly p) { 37 polynomial = p; 38 38 } 39 39 40 void LPoly::setTerm(poly *t) {41 term = *t;40 void LPoly::setTerm(poly t) { 41 term = t; 42 42 } 43 43 44 void LPoly::setIndex(int *i) {45 index = *i;44 void LPoly::setIndex(int i) { 45 index = i; 46 46 } 47 47 … … 66 66 } 67 67 68 void LPoly::set(poly * t, int* i, poly* p) {68 void LPoly::set(poly t, int i, poly p, bool d) { 69 69 this->setTerm(t); 70 70 this->setIndex(i); 71 71 this->setPoly(p); 72 this->setDel(d); 72 73 } 73 74 … … 98 99 } 99 100 101 poly* CPair::getAdT1() { 102 return &t1; 103 } 104 105 poly* CPair::getAdT2() { 106 return &t2; 107 } 108 100 109 poly CPair::getT2() { 101 110 return t2; 111 } 112 113 LPoly* CPair::getAdLp1() { 114 return lp1; 115 } 116 117 LPoly* CPair::getAdLp2() { 118 return lp2; 102 119 } 103 120 … … 135 152 =================================== 136 153 */ 137 Rule::Rule(int * i, poly* t) {154 Rule::Rule(int i, poly t, LPoly* l) { 138 155 index = i; 139 156 term = t; 157 origin = l; 140 158 } 141 159 142 160 int Rule::getIndex() { 143 return *index;161 return index; 144 162 } 145 163 146 164 poly Rule::getTerm() { 147 return *term;165 return term; 148 166 } 149 167
Note: See TracChangeset
for help on using the changeset viewer.