|
Macaulay2 Engine
|
Variable-size counterpart of MonomialCollectionFixedSize: pairs a MonomialSetVarSize with its own MonomialMemorySpace. More...
#include <monomial-sets.hpp>
Public Member Functions | |
| MonomialCollectionVarSize () | |
| MonomialMemorySpace & | monomialMemorySpace () |
| std::size_t | size () const |
| std::pair< const int *, bool > | findOrInsert (const int *monom) |
| std::pair< const int *, bool > | findOrInsertTopInternedMonomial (int *&monom) |
| const int * | find (const int *monom) const |
Private Attributes | |
| MonomialSetVarSize | mSet |
| MonomialMemorySpace | mMonomialMemory |
Variable-size counterpart of MonomialCollectionFixedSize: pairs a MonomialSetVarSize with its own MonomialMemorySpace.
findOrInsert(monom) allocates *monom ints in the arena, copies the monomial in, attempts to intern the pointer, and pops on duplicate. Same intern-or-pop pattern as the fixed-size variant with the length read from the monomial's first int.
Definition at line 358 of file monomial-sets.hpp.