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

class PList of lists of PNodes More...

#include <f5lists.h>

Public Member Functions

 PList ()
 functions working on the class PList More...
 
void insert (poly p)
 
bool check (poly p)
 
void print ()
 

Private Attributes

PNodefirst
 

Detailed Description

class PList of lists of PNodes

Definition at line 50 of file f5lists.h.

Constructor & Destructor Documentation

◆ PList()

PList::PList ( )

functions working on the class PList

Definition at line 75 of file f5lists.cc.

75 {
76 first = NULL;
77}
PNode * first
Definition: f5lists.h:52
#define NULL
Definition: omList.c:12

Member Function Documentation

◆ check()

bool PList::check ( poly  p)

Definition at line 93 of file f5lists.cc.

93 {
94 PNode* temp = first;
95 //Print("\nCHECK: \n");
96 //pWrite(p);
97 //Print("-----\n");
98 while(NULL != temp) {
99 //pWrite(temp->getPoly());
100 //pWrite(p);
101 //Print("COMPARE: %d\n",pLmEqual(p,temp->getPoly()));
102 if(1 == pLmEqual(p,temp->getPoly())) {
103 //Print("YES!\n");
104 //pWrite(pHead(temp->getPoly()));
105 //Print("YES!\n");
106 return 1;
107 }
108 temp = temp->getNext();
109 }
110 //Print("NOTHING!\n");
111 return 0;
112}
int p
Definition: cfModGcd.cc:4078
class PNode of nodes of polynomials
Definition: f5lists.h:36
PNode * getNext()
Definition: f5lists.cc:34
poly getPoly()
Definition: f5lists.cc:30
#define pLmEqual(p1, p2)
Definition: polys.h:111

◆ insert()

void PList::insert ( poly  p)

Definition at line 80 of file f5lists.cc.

80 {
81 first = first->insert(p);
82}
PNode * insert(poly p)
Definition: f5lists.cc:37

◆ print()

void PList::print ( )

Definition at line 114 of file f5lists.cc.

114 {
115 Print("-----LIST-----\n");
116 PNode* temp = first;
117 while(NULL != temp) {
118 pWrite(temp->getPoly());
119 temp = temp->getNext();
120 }
121}
#define Print
Definition: emacs.cc:80
void pWrite(poly p)
Definition: polys.h:308

Field Documentation

◆ first

PNode* PList::first
private

Definition at line 52 of file f5lists.h.


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