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

MutableEngineObject wrapper holding a raw SLEvaluator*. More...

#include <SLP-defs.hpp>

Inheritance diagram for M2SLEvaluator:
MutableEngineObject our_gc_cleanup our_new_delete

Public Member Functions

 M2SLEvaluator (SLEvaluator *pa)
 !! this is a hack to avoid memory corruption, it results in a memory leak
SLEvaluatorvalue ()
Public Member Functions inherited from MutableEngineObject
 MutableEngineObject ()
virtual ~MutableEngineObject ()
unsigned int hash () const
Public Member Functions inherited from our_gc_cleanup
 our_gc_cleanup ()
virtual ~our_gc_cleanup ()

Private Attributes

SLEvaluatormSLEvaluator

Additional Inherited Members

Static Public 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

MutableEngineObject wrapper holding a raw SLEvaluator*.

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

Stores a raw pointer rather than unique_ptr — per the inline comment, this is a deliberate leak that avoids a heap-corruption bug triggered when ownership is transferred. value() returns the underlying abstract evaluator for engine code that needs to call evaluate / specialize directly.

Definition at line 247 of file SLP-defs.hpp.


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