|
Macaulay2 Engine
|
A base class for Element. More...
#include <aring.hpp>
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 | |
| ElementImpl & | operator= (const ElementImpl &other) noexcept=default |
| ElementImpl & | operator= (ElementImpl &&other) noexcept=default |
| ~ElementImpl () noexcept=default | |
Protected Attributes | |
| ElementType | mValue |
A base class for Element.
| ElementType | the 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.