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

◆ operator=()

template<typename MonomType>
const Polynom< MonomType > & BIBasis::Polynom< MonomType >::operator= ( const Polynom< MonomType > & anotherPolynom)

Definition at line 225 of file polynom.hpp.

226 {
228 {
229 SetZero();
230 }
231 else
232 {
235 while (*iterator && iteratorAnother)
236 {
238 iterator = &((*iterator)->Next);
240 }
241
242 if (*iterator)
243 {
244 MonomType* monomToDelete = (*iterator)->Next;
245 *iterator = 0;
246 while (monomToDelete)
247 {
250 delete iteratorAnother;
251 }
252 }
253 else while (iteratorAnother)
254 {
256 iterator = &((*iterator)->Next);
258 }
259 }
260 return *this;
261 }
MonomType * MonomListHead
Definition polynom.hpp:53

References MonomListHead, operator=(), Polynom(), and SetZero().

Referenced by operator=().