Macaulay2 Engine
Loading...
Searching...
No Matches
M2::SimpleARing< ARing >::ElementArray Class Reference

A wrapper for an array of ElementType. More...

#include <aring.hpp>

Public Member Functions

 ElementArray (const ARing &ring, size_t size)
 ~ElementArray ()
ElementTypeoperator[] (size_t idx)
const ElementTypeoperator[] (size_t idx) const
ElementTypedata ()
const ElementTypedata () const

Private Types

typedef ARing::ElementType ElementType

Private Attributes

const size_t mSize
std::unique_ptr< ElementType[]> mData

Detailed Description

template<class ARing>
class M2::SimpleARing< ARing >::ElementArray

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

Definition at line 176 of file aring.hpp.


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