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

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

Detailed Description

Type-erased owning handle to a dense coefficient vector held by a ConcreteVectorArithmetic<Ring>.

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

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.


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