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

◆ operator>()

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

Definition at line 452 of file monomLex.hpp.

453 {
454 VarsListNode *iterator = ListHead,
455 *anotherIterator = anotherMonom.ListHead;
456 while (anotherIterator && iterator)
457 {
458 if (iterator->Value < anotherIterator->Value)
459 {
460 return true;
461 }
462 if (iterator->Value > anotherIterator->Value)
463 {
464 return false;
465 }
466 iterator = iterator->Next;
467 anotherIterator = anotherIterator->Next;
468 }
469 return iterator;
470 }
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>().