My Project
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes
RList Class Reference

#include <f5lists.h>

Public Member Functions

 RList ()
 
 RList (RuleOld *r)
 
 ~RList ()
 
void insert (RuleOld *r)
 
void insert (int i, poly t)
 
void insertOrdered (RuleOld *r)
 
RNodegetFirst ()
 
RuleOldgetRuleOld ()
 
void print ()
 

Private Attributes

RNodefirst
 
RNodelast
 

Detailed Description

Definition at line 313 of file f5lists.h.

Constructor & Destructor Documentation

◆ RList() [1/2]

RList::RList ( )

Definition at line 1053 of file f5lists.cc.

1053 {
1054 first = NULL;
1055}
RNode * first
Definition: f5lists.h:315
#define NULL
Definition: omList.c:12

◆ RList() [2/2]

RList::RList ( RuleOld r)

Definition at line 1057 of file f5lists.cc.

1057 {
1058 first = new RNode(r);
1059}
Definition: f5lists.h:290

◆ ~RList()

RList::~RList ( )

Definition at line 1061 of file f5lists.cc.

1061 {
1062 RNode* temp;
1063 //Print("%p\n",first);
1064 while(first) {
1065 temp = first;
1066 first = first->getNext();
1067 //Print("1 %p\n",first);
1068 //if(first) {
1069 //Print("1' %p\n",first->getRuleOld());
1070 //Print("2 %p\n",first->getNext());
1071 //Print("3 %p\n",first->getNext()->getRuleOld());
1072 //Print("3 %p\n",first->getNext()->getRuleOldTerm());
1073 //}
1074 delete temp;
1075 }
1076 //Print("FERTIG\n");
1077}
RNode * getNext()
Definition: f5lists.cc:1023

Member Function Documentation

◆ getFirst()

RNode * RList::getFirst ( )

Definition at line 1091 of file f5lists.cc.

1091 {
1092 return first;
1093}

◆ getRuleOld()

RuleOld * RList::getRuleOld ( )

Definition at line 1095 of file f5lists.cc.

1095 {
1096 return this->getRuleOld();
1097}
RuleOld * getRuleOld()
Definition: f5lists.cc:1095

◆ insert() [1/2]

void RList::insert ( int  i,
poly  t 
)

Definition at line 1079 of file f5lists.cc.

1079 {
1080 first = first->insert(i,t);
1081}
int i
Definition: cfEzgcd.cc:132
RNode * insert(RuleOld *r)
Definition: f5lists.cc:983

◆ insert() [2/2]

void RList::insert ( RuleOld r)

Definition at line 1083 of file f5lists.cc.

1083 {
1084 first = first->insert(r);
1085}

◆ insertOrdered()

void RList::insertOrdered ( RuleOld r)

Definition at line 1087 of file f5lists.cc.

1087 {
1089}
RNode * insertOrdered(RuleOld *r)
Definition: f5lists.cc:1002

◆ print()

void RList::print ( )

Definition at line 1099 of file f5lists.cc.

1099 {
1100 first->print();
1101}
void print()
Definition: f5lists.cc:1039

Field Documentation

◆ first

RNode* RList::first
private

Definition at line 315 of file f5lists.h.

◆ last

RNode* RList::last
private

Definition at line 317 of file f5lists.h.


The documentation for this class was generated from the following files: