Changeset cce6ed3 in git for kernel/lists.h
- Timestamp:
- Jan 25, 2009, 6:13:06 PM (15 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- f4e338f564fc725c8dac99c44cbf3f5ec5ceacb2
- Parents:
- 0883ed62762dee5f6c5fa37f064d3883b99dc21f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/lists.h
r0883ed rcce6ed3 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: lists.h,v 1. 3 2009-01-15 17:44:24ederc Exp $ */4 /* $Id: lists.h,v 1.4 2009-01-25 17:13:06 ederc Exp $ */ 5 5 /* 6 6 * ABSTRACT: list interface … … 24 24 class CNode; 25 25 class CList; 26 26 class RList; 27 class RNode; 27 28 28 29 /* … … 41 42 LNode(LNode* ln); 42 43 ~LNode(); 43 // append new elements to the listfrom the labeled / classical polynomial view44 // insert new elements to the list in first place from the labeled / classical polynomial view 44 45 LNode* insert(LPoly* lp); 45 46 LNode* insert(poly* t, int* i, poly* p); 47 // insert new elements to the list with resp. to increasing labels 48 // only used for the S-polys to be reduced (TopReduction building new S-polys with higher label) 49 LNode* insertByLabel(LPoly* lp); 50 // deletes the first elements of the list with the same degree 46 51 // get next from current LNode 47 52 LNode* getNext(); 48 53 // only used for the S-polys, which are already sorted by increasing degree by CList 54 LNode* deleteByDeg(); 49 55 // get the LPoly* out of LNode* 50 56 LPoly* getLPoly(); 51 // get the address of the polynomial part of LPoly* of LNode*57 // get the data from the LPoly saved in LNode 52 58 poly* getPoly(); 59 poly* getTerm(); 60 int* getIndex(); 53 61 // test if for any list element the polynomial part of the data is equal to *p 54 62 bool polyTest(poly* p); 63 LNode* getNext(LNode* l); 55 64 }; 56 65 … … 64 73 private: 65 74 LNode* first; 66 int length;67 75 public: 68 76 LList(LPoly* lp); … … 72 80 // insertion in front of the list 73 81 void insert(poly* t,int* i, poly* p); 82 void insertByLabel(LPoly* lp); 83 void deleteByDeg(); 74 84 bool polyTest(poly* p); 75 int getLength() const;76 LNode* get First();85 LNode* getFirst(); 86 LNode* getNext(LNode* l); 77 87 }; 78 88 … … 115 125 /* 116 126 ======================================= 117 CNode class(nodes for lists of CPairs)127 class CNode (nodes for lists of CPairs) 118 128 ======================================= 119 129 */ … … 126 136 ~CNode(); 127 137 CNode* insert(CPair* c); 128 CNode* getLPoly() const; 138 CNode* getMinDeg(); 139 //CNode* getLPoly() const; 129 140 }; 130 141 131 142 132 143 /* 133 ============================ =134 class C PList(lists of CPairs)135 ============================ =144 ============================ 145 class CList(lists of CPairs) 146 ============================ 136 147 */ 137 148 class CList { … … 141 152 CList(CPair* c); 142 153 ~CList(); 143 void insert(CPair* c); 154 void insert(CPair* c); 155 CNode* getMinDeg(); 156 157 }; 158 159 160 /* 161 ====================================== 162 class RNode (nodes for lists of Rules) 163 ====================================== 164 */ 165 class RNode { 166 private: 167 Rule* data; 168 RNode* next; 169 public: 170 RNode(Rule* r); 171 ~RNode(); 172 RNode* insert(Rule* r); 173 }; 174 175 /* 176 ============================ 177 class RList (lists of Rules) 178 ============================ 179 */ 180 class RList { 181 private: 182 RNode* first; 183 public: 184 RList(Rule* r); 185 ~RList(); 186 void insert(Rule* r); 144 187 }; 145 188 #endif
Note: See TracChangeset
for help on using the changeset viewer.