|
Macaulay2 Engine
|
Type-erased owning handle to a dense coefficient vector held by a ConcreteVectorArithmetic<Ring>. More...
#include <VectorArithmetic.hpp>
Public Member Functions | |
| ElementArray () | |
| bool | isNull () const |
| void | swap (ElementArray &b) |
Private Member Functions | |
| ElementArray (void *p) | |
| void * | getValue () const |
| void | setValue (void *newValue) |
Private Attributes | |
| void * | mValue |
Friends | |
| template<typename RingType> | |
| class | ConcreteVectorArithmetic |
Type-erased owning handle to a dense coefficient vector held by a ConcreteVectorArithmetic<Ring>.
Stores a single void* whose concrete type is the wrapped ring's ElementContainerType (e.g. an std::vector<elem> or an ARing concrete array). All payload access is funneled through ConcreteVectorArithmetic — the friend declaration — so only the matching arithmetic dispatcher can recover the real pointer. Default-constructed as null; copies are disallowed and moves go through swap, keeping ownership unique.
Definition at line 97 of file VectorArithmetic.hpp.