Macaulay2 Engine
Loading...
Searching...
No Matches
MonomialCollectionVarSize Class Reference

Variable-size counterpart of MonomialCollectionFixedSize: pairs a MonomialSetVarSize with its own MonomialMemorySpace. More...

#include <monomial-sets.hpp>

Public Member Functions

 MonomialCollectionVarSize ()
MonomialMemorySpacemonomialMemorySpace ()
std::size_t size () const
std::pair< const int *, boolfindOrInsert (const int *monom)
std::pair< const int *, boolfindOrInsertTopInternedMonomial (int *&monom)
const intfind (const int *monom) const

Private Attributes

MonomialSetVarSize mSet
MonomialMemorySpace mMonomialMemory

Detailed Description

Variable-size counterpart of MonomialCollectionFixedSize: pairs a MonomialSetVarSize with its own MonomialMemorySpace.

Note
AI-generated documentation. Verify against the source before relying on it.

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.


The documentation for this class was generated from the following file: