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

◆ operator<()

bool BIBasis::MonomLex::operator< ( const MonomLex & anotherMonom) const
inline

Definition at line 432 of file monomLex.hpp.

433 {
434 VarsListNode *iterator = ListHead,
435 *anotherIterator = anotherMonom.ListHead;
436 while (anotherIterator && iterator)
437 {
438 if (iterator->Value < anotherIterator->Value)
439 {
440 return false;
441 }
442 if (iterator->Value > anotherIterator->Value)
443 {
444 return true;
445 }
446 iterator = iterator->Next;
447 anotherIterator = anotherIterator->Next;
448 }
449 return anotherIterator;
450 }
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<(), and BIBasis::Monom::VarsListNode::Value.

Referenced by operator<().