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

◆ operator!=()

bool BIBasis::MonomDRL::operator!= ( const MonomDRL & anotherMonom) const
inline

Definition at line 407 of file monomDRL.hpp.

408 {
409 if (TotalDegree != anotherMonom.TotalDegree)
410 {
411 return true;
412 }
413 else
414 {
415 VarsListNode *iterator = ListHead,
416 *anotherIterator = anotherMonom.ListHead;
417 while (anotherIterator)
418 {
419 if (iterator->Value != anotherIterator->Value)
420 {
421 break;
422 }
423 iterator = iterator->Next;
424 anotherIterator = anotherIterator->Next;
425 }
426 return anotherIterator;
427 }
428 }
Integer TotalDegree
Definition monom.hpp:106
VarsListNode * ListHead
Definition monom.hpp:105
Singly linked-list node of a Monom's variable list, with a per-class slab allocator.
Definition monom.hpp:94

References BIBasis::Monom::ListHead, MonomDRL(), BIBasis::Monom::VarsListNode::Next, operator!=(), BIBasis::Monom::TotalDegree, and BIBasis::Monom::VarsListNode::Value.

Referenced by operator!=().