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

Frobby::IdealConsumer adapter that collects Frobby's output monomials into an engine MonomialIdeal. More...

Inheritance diagram for MyIdealConsumer:
our_new_delete

Public Member Functions

 MyIdealConsumer (const PolynomialRing *R, int nv0)
 ~MyIdealConsumer ()
virtual void consume (mpz_ptr *exponentVector)
MonomialIdealresult ()

Private Attributes

int nv
exponents_t exp
MonomialIdealJ

Additional Inherited Members

Static Private Member Functions inherited from our_new_delete
static void * operator new (size_t size)
static void * operator new[] (size_t size)
static void operator delete (void *obj)
static void operator delete[] (void *obj)
static void * operator new (size_t size, void *existing_memory)
static void * operator new[] (size_t size, void *existing_memory)
static void operator delete (void *obj, void *existing_memory)
static void operator delete[] (void *obj, void *existing_memory)

Detailed Description

Frobby::IdealConsumer adapter that collects Frobby's output monomials into an engine MonomialIdeal.

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

Holds a scratch exp buffer of length nv (the variable count) and a MonomialIdeal* J accumulator. Each consume callback from Frobby converts the incoming mpz_t** exponent vector into engine exp form and appends it to J. The completed ideal is then handed back to the front end as the result of the Frobby-backed monomial operation.

Definition at line 297 of file monomial-ideal.cpp.


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