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

◆ operator!=()

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

Definition at line 409 of file monomLex.hpp.

410 {
411 if (TotalDegree != anotherMonom.TotalDegree)
412 {
413 return true;
414 }
415 else
416 {
417 VarsListNode *iterator(ListHead),
418 *anotherIterator(anotherMonom.ListHead);
419 while (anotherIterator)
420 {
421 if (iterator->Value != anotherIterator->Value)
422 {
423 break;
424 }
425 iterator = iterator->Next;
426 anotherIterator = anotherIterator->Next;
427 }
428 return anotherIterator;
429 }
430 }
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, MonomLex(), BIBasis::Monom::VarsListNode::Next, operator!=(), BIBasis::Monom::TotalDegree, and BIBasis::Monom::VarsListNode::Value.

Referenced by operator!=().