Template Class Array

Inheritance Relationships

Base Type

Class Documentation

template<typename ValueType>
class sparsebase::format::Array : public sparsebase::utils::IdentifiableImplementation<Array<ValueType>, FormatOrderOne<ValueType>>

One dimensional Format class that wraps a native C++ array.

This class basically functions as a wrapper for native C++ arrays such that they can be used polymorphically with the rest of the Format classes

tparam ValueType

type that the array stores

Public Functions

Array(DimensionType nnz, ValueType *row_ptr, Ownership own = kNotOwned)
Array(const Array<ValueType>&)
Array(Array<ValueType>&&)
Array<ValueType> &operator=(const Array<ValueType>&)
Format *Clone() const override
virtual ~Array()
ValueType *get_vals() const
ValueType *release_vals()
void set_vals(ValueType*, Ownership own = kNotOwned)
virtual bool ValsIsOwned()

Protected Attributes

std::unique_ptr<ValueType, std::function<void(ValueType*)>> vals_