Changeset fcb8022 in git for kernel/f5lists.cc
- Timestamp:
- Feb 8, 2009, 8:17:54 PM (14 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
- Children:
- 35d0d1a7256e75184cea2fe4d2e02762b243b544
- Parents:
- 9bb97ef0a0e640ba336498902b874a16dc7b978e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/f5lists.cc
r9bb97e rfcb8022 126 126 } 127 127 128 bool LNode::getDel() {129 return data->getDel();130 }131 132 128 // set the data from the LPoly saved in LNode 133 129 void LNode::setPoly(poly p) { … … 141 137 void LNode::setIndex(int i) { 142 138 data->setIndex(i); 143 }144 145 void LNode::setDel(bool d) {146 data->setDel(d);147 139 } 148 140 … … 224 216 } 225 217 218 void LList::setFirst(LNode* l) { 219 LNode* temp = first; 220 first = l; 221 delete(temp); 222 } 223 224 /* 225 =================================== 226 functions working on the class LRed 227 =================================== 228 */ 229 LRed::LRed() { 230 data = NULL; 231 gPrevRedCheck = NULL; 232 completedRedCheck = NULL; 233 } 234 235 LRed::LRed(poly t,int i,poly p,LNode* g, LNode* c) { 236 LPoly* lp = new LPoly(t,i,p); 237 data = lp; 238 gPrevRedCheck = g; 239 completedRedCheck = c; 240 } 241 242 LPoly* LRed::getLPoly() { 243 return data; 244 } 245 246 LNode* LRed::getGPrevRedCheck() { 247 return gPrevRedCheck; 248 } 249 250 LNode* LRed::getCompletedRedCheck() { 251 return completedRedCheck; 252 } 253 254 // get the data from the LPoly saved in LNode 255 poly LRed::getPoly() { 256 return data->getPoly(); 257 } 258 259 poly LRed::getTerm() { 260 return data->getTerm(); 261 } 262 263 int LRed::getIndex() { 264 return data->getIndex(); 265 } 266 267 // set the data from the LPoly saved in LNode 268 void LRed::setPoly(poly p) { 269 data->setPoly(p); 270 } 271 272 void LRed::setTerm(poly t) { 273 data->setTerm(t); 274 } 275 276 void LRed::setIndex(int i) { 277 data->setIndex(i); 278 } 279 280 226 281 /* 227 282 ======================================= … … 336 391 } 337 392 if( c->getDeg() == this->data->getDeg() ) { // same degree than the first list element 338 if(0 == pLmCmp(u1,ppMult_qq(this->data->getT1(), this->data->getLp1Term())) || 339 -1 == pLmCmp(u1,ppMult_qq(this->data->getT1(), this->data->getLp1Term()))) { 393 if(1 != pLmCmp(u1,ppMult_qq(this->data->getT1(), this->data->getLp1Term()))) { 340 394 pWrite(u1); 341 395 Print("Multi-Term in CritPairs Sortierung altes Element: "); … … 378 432 } 379 433 if( c->getDeg() == temp->next->data->getDeg() ) { 380 if(0 == pLmCmp(u1,ppMult_qq(temp->next->data->getT1(),temp->next->data->getLp1Term())) || 381 -1 == pLmCmp(u1,ppMult_qq(temp->next->data->getT1(),temp->next->data->getLp1Term()))) { 434 if(1 != pLmCmp(u1,ppMult_qq(temp->next->data->getT1(),temp->next->data->getLp1Term()))) { 382 435 CNode* newElement = new CNode(c, temp->next); 383 436 temp->next = newElement; … … 605 658 } 606 659 660 LPoly* RNode::getRuleOrigin() { 661 return data->getOrigin(); 662 } 663 607 664 /* 608 665 ==================================== … … 660 717 } 661 718 662 // declaration with first as parameter due to sorting of LTagList719 // declaration with first as parameter due to sorting of RTagList 663 720 RTagNode* RTagNode::insert(RNode* r) { 664 721 Print("Hier1\n"); … … 689 746 } 690 747 748 void RTagNode::set(RNode* r) { 749 this->data = r; 750 } 691 751 692 752 /* … … 719 779 return first->get(idx, length); 720 780 } 781 782 void RTagList::setFirst(RNode* r) { 783 first->set(r); 784 } 721 785 #endif
Note: See TracChangeset
for help on using the changeset viewer.