|
Macaulay2 Engine
|
A wrapper for an array of ElementType. More...
#include <aring.hpp>
Public Member Functions | |
| ElementArray (const ARing &ring, size_t size) | |
| ~ElementArray () | |
| ElementType & | operator[] (size_t idx) |
| const ElementType & | operator[] (size_t idx) const |
| ElementType * | data () |
| const ElementType * | data () const |
Private Types | |
| typedef ARing::ElementType | ElementType |
Private Attributes | |
| const size_t | mSize |
| std::unique_ptr< ElementType[]> | mData |
A wrapper for an array of ElementType.
This class is intended to replace dynamically allocated arrays of ElementType. In particular, this will correctly clear the data from the ring upon destruction