Changeset fcb8022 in git for kernel/f5lists.cc


Ignore:
Timestamp:
Feb 8, 2009, 8:17:54 PM (15 years ago)
Author:
Christian Eder
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
35d0d1a7256e75184cea2fe4d2e02762b243b544
Parents:
9bb97ef0a0e640ba336498902b874a16dc7b978e
Message:
rTag update


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

Legend:

Unmodified
Added
Removed
  • kernel/f5lists.cc

    r9bb97e rfcb8022  
    126126}
    127127
    128 bool LNode::getDel() {
    129     return data->getDel();
    130 }
    131 
    132128// set the data from the LPoly saved in LNode
    133129void LNode::setPoly(poly p) {
     
    141137void LNode::setIndex(int i) {
    142138    data->setIndex(i);
    143 }
    144 
    145 void LNode::setDel(bool d) {
    146     data->setDel(d);
    147139}
    148140
     
    224216}
    225217
     218void LList::setFirst(LNode* l) {
     219    LNode* temp =   first;
     220    first       =   l;
     221    delete(temp);
     222}
     223
     224/*
     225===================================
     226functions working on the class LRed
     227===================================
     228*/
     229LRed::LRed() {
     230    data                =   NULL;
     231    gPrevRedCheck       =   NULL;
     232    completedRedCheck   =   NULL;
     233}
     234
     235LRed::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
     242LPoly* LRed::getLPoly() {
     243    return data;
     244}
     245
     246LNode* LRed::getGPrevRedCheck() {
     247    return gPrevRedCheck;
     248}
     249
     250LNode* LRed::getCompletedRedCheck() {
     251    return completedRedCheck;
     252}
     253
     254// get the data from the LPoly saved in LNode
     255poly LRed::getPoly() {
     256    return data->getPoly();
     257}
     258
     259poly LRed::getTerm() {
     260    return data->getTerm();
     261}
     262
     263int LRed::getIndex() {
     264    return data->getIndex();
     265}
     266
     267// set the data from the LPoly saved in LNode
     268void LRed::setPoly(poly p) {
     269    data->setPoly(p);
     270}
     271
     272void LRed::setTerm(poly t) {
     273    data->setTerm(t);
     274}
     275
     276void LRed::setIndex(int i) {
     277    data->setIndex(i);
     278}
     279
     280
    226281/*
    227282=======================================
     
    336391        }
    337392        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()))) {
    340394                pWrite(u1);
    341395                Print("Multi-Term in CritPairs Sortierung altes Element: ");
     
    378432                }
    379433                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()))) {
    382435                        CNode* newElement   =   new CNode(c, temp->next);
    383436                        temp->next          =   newElement;
     
    605658}
    606659
     660LPoly* RNode::getRuleOrigin() {
     661    return data->getOrigin();
     662}
     663
    607664/*
    608665====================================
     
    660717}
    661718       
    662 // declaration with first as parameter due to sorting of LTagList
     719// declaration with first as parameter due to sorting of RTagList
    663720RTagNode* RTagNode::insert(RNode* r) {
    664721    Print("Hier1\n");
     
    689746}
    690747
     748void RTagNode::set(RNode* r) {
     749    this->data  =   r;
     750}
    691751
    692752/*
     
    719779    return first->get(idx, length);
    720780}
     781
     782void RTagList::setFirst(RNode* r) {
     783    first->set(r);
     784}
    721785#endif
Note: See TracChangeset for help on using the changeset viewer.