Macaulay2 Engine
Loading...
Searching...
No Matches

◆ MonomLex() [2/2]

BIBasis::MonomLex::MonomLex ( const MonomLex & anotherMonom)
inline

Definition at line 112 of file monomLex.hpp.

113 : Monom()
114 , Next(nullptr)
115 {
116 if (!anotherMonom.ListHead)
117 {
118 return;
119 }
120 else
121 {
122 TotalDegree = anotherMonom.TotalDegree;
123 VarsListNode **iterator = &ListHead,
124 *iteratorAnother = anotherMonom.ListHead;
125 while (iteratorAnother)
126 {
127 *iterator = new VarsListNode();
128 (*iterator)->Value = iteratorAnother->Value;
129
130 iterator = &((*iterator)->Next);
131 iteratorAnother = iteratorAnother->Next;
132 }
133 }
134 }
Integer TotalDegree
Definition monom.hpp:106
VarsListNode * ListHead
Definition monom.hpp:105
MonomLex * Next
Definition monomLex.hpp:68
Singly linked-list node of a Monom's variable list, with a per-class slab allocator.
Definition monom.hpp:94

References BIBasis::Monom::ListHead, BIBasis::Monom::Monom(), MonomLex(), and Next.