|
Macaulay2 Engine
|
Word plus its ecart degree and heft degree — the value type WordWithDataTable stores. More...
#include <Word.hpp>
Public Member Functions | |
| WordWithData () | |
| WordWithData (const int *begin, const int *end, int ecartDegree, int heftDegree) | |
| void | init (const int *begin, const int *end, int ecartDegree, int heftDegree) |
| const int * | begin () const |
| const int * | end () const |
| Word | word () const |
| int | ecartDegree () const |
| int | heftDegree () const |
| size_t | size () const |
| bool | operator== (WordWithData rhs) |
Private Attributes | |
| Word | mWord |
| int | mEcartDegree |
| int | mHeftDegree |
Word plus its ecart degree and heft degree — the value type WordWithDataTable stores.
mEcartDegree records the power of an invisible homogenising variable so divisibility checks in WordWithDataTable::subword can refuse matches whose ecart is wrong; mHeftDegree is the original heft degree the word entered with, kept for stable sorting. The underlying word is held by composition (mWord) rather than inheritance.