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

◆ MonomDRL() [2/2]

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

Definition at line 110 of file monomDRL.hpp.

111 : Monom()
112 , Next(nullptr)
113 {
114 if (!anotherMonom.ListHead)
115 {
116 return;
117 }
118 else
119 {
120 TotalDegree = anotherMonom.TotalDegree;
121 VarsListNode **iterator = &ListHead,
122 *iteratorAnother = anotherMonom.ListHead;
123 while (iteratorAnother)
124 {
125 *iterator = new VarsListNode();
126 (*iterator)->Value = iteratorAnother->Value;
127
128 iterator = &((*iterator)->Next);
129 iteratorAnother = iteratorAnother->Next;
130 }
131 }
132 }
Integer TotalDegree
Definition monom.hpp:106
VarsListNode * ListHead
Definition monom.hpp:105
MonomDRL * Next
Definition monomDRL.hpp:65
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(), MonomDRL(), and Next.