Macaulay2 Engine
Loading...
Searching...
No Matches
aring-wrap.hpp File Reference

RElementWrap<RingType> and AConcreteRing<RingType> — abandoned scaffolding for an abstract ARing / RElement base. More...

#include "aring.hpp"

Go to the source code of this file.

Classes

class  M2::RElementWrap< RingType >
class  M2::AConcreteRing< RingType >

Namespaces

namespace  M2

Detailed Description

RElementWrap<RingType> and AConcreteRing<RingType> — abandoned scaffolding for an abstract ARing / RElement base.

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

Declares two templates that sketch an alternative aring type-erasure design: RElementWrap<RingType> inherits from RElement and stores one RingType::ElementType value, and AConcreteRing<RingType> inherits from ARing, holds a RingType by value, and forwards init_set / add_to to it through the RELEM(RingType, ...) cast macros. Both templates friend bool ARing::converter(const ARing*, const ARing*, const RElement&, RElement&) — but neither RElement, ARing, nor ARing::converter is defined anywhere in the engine tree; the two templates are not referenced by any other file. Treat this header as orphan scaffolding kept around for historical / sketch purposes rather than as part of the live aring framework, whose actual ring- and element-level bridges live in aring-glue.hpp (vertical bridge to Ring*) and the mypromote / mylift family in aring-translate.hpp.

See also
aring.hpp
aring-glue.hpp
aring-translate.hpp

Definition in file aring-wrap.hpp.