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

mathicgb (mgb) callback that polls the engine's interrupt flag during a long-running GB computation. More...

Inheritance diagram for MGBCallback:

Public Member Functions

 MGBCallback ()
size_t callCount () const
bool wasInterrupted () const

Protected Member Functions

virtual Action call ()

Private Attributes

size_t mCallCount
bool mInterrupted

Detailed Description

mathicgb (mgb) callback that polls the engine's interrupt flag during a long-running GB computation.

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

Subclass of mgb::GroebnerConfiguration::Callback whose call() is invoked periodically by mathicgb. Each call increments mCallCount and checks system_interrupted(); on interrupt it sets mInterrupted and returns StopWithNoOutputAction so mathicgb tears down its work cleanly without producing a partial GB.

Definition at line 743 of file groebner.cpp.


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