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

◆ operator==()

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

Definition at line 384 of file monomDRL.hpp.

385 {
386 if (TotalDegree != anotherMonom.TotalDegree)
387 {
388 return false;
389 }
390 else
391 {
392 VarsListNode *iterator = ListHead,
393 *anotherIterator = anotherMonom.ListHead;
394 while (anotherIterator)
395 {
396 if (iterator->Value != anotherIterator->Value)
397 {
398 break;
399 }
400 iterator = iterator->Next;
401 anotherIterator = anotherIterator->Next;
402 }
403 return !anotherIterator;
404 }
405 }
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==().