Macaulay2 Engine
Loading...
Searching...
No Matches
M2::ElementImpl< ElementType > Class Template Reference

A base class for Element. More...

#include <aring.hpp>

Inheritance diagram for M2::ElementImpl< ElementType >:
CoefficientRingR::Element M2::ARingGFFlint::Element M2::ARingGFFlintBig::Element M2::ARingTower::Element

Public Member Functions

 operator const ElementType & () const
 operator ElementType & ()
const ElementType & value () const
ElementType & value ()

Protected Member Functions

 ElementImpl ()=default
 ElementImpl (const ElementType &value)
 ElementImpl (ElementType &&value)
 ElementImpl (const ElementImpl &other) noexcept=default
 ElementImpl (ElementImpl &&other) noexcept=default
ElementImploperator= (const ElementImpl &other) noexcept=default
ElementImploperator= (ElementImpl &&other) noexcept=default
 ~ElementImpl () noexcept=default

Protected Attributes

ElementType mValue

Detailed Description

template<class ElementType>
class M2::ElementImpl< ElementType >

A base class for Element.

Template Parameters
ElementTypethe raw type to be wrapped

This class template serves as a base class for the Element classes in the various ARing types, It only implements the functions to convert to an ElementType. This class has a protected destructor so that users cannot accidentally try to destroy an Element using an ElementImpl pointer.

Definition at line 116 of file aring.hpp.


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