Template Class BinaryWriterOrderTwo

Inheritance Relationships

Base Types

Class Documentation

template<typename IDType, typename NNZType, typename ValueType>
class sparsebase::io::BinaryWriterOrderTwo : public sparsebase::io::Writer, public sparsebase::io::WritesCOO<IDType, NNZType, ValueType>, public sparsebase::io::WritesCSR<IDType, NNZType, ValueType>

Writes files by encoding them in SparseBase’s custom binary format (CSR and COO)

Public Functions

explicit BinaryWriterOrderTwo(std::string filename)
~BinaryWriterOrderTwo() override = default
virtual void WriteCOO(format::COO<IDType, NNZType, ValueType> *coo) const override

Writes the given COO instance to a file.

virtual void WriteCSR(format::CSR<IDType, NNZType, ValueType> *csr) const override

Writes the given CSR instance to a file.