Frobby 0.10.0
Loading...
Searching...
No Matches
IOHandler Class Referenceabstract

#include <IOHandler.h>

Inheritance diagram for IOHandler:

Public Member Functions

void readIdeal (Scanner &in, InputConsumer &consumer)
void readIdeals (Scanner &in, InputConsumer &consumer)
void readTerm (Scanner &in, const VarNames &names, vector< mpz_class > &term)
void readPolynomial (Scanner &in, CoefBigTermConsumer &consumer)
void readSatBinomIdeal (Scanner &in, SatBinomConsumer &consumer)
void writeTerm (const vector< mpz_class > &term, const VarNames &names, FILE *out)
bool hasMoreInput (Scanner &in) const
const char * getName () const
const char * getDescription () const
unique_ptr< BigTermConsumer > createIdealWriter (FILE *out)
unique_ptr< BigTermConsumer > createIdealListWriter (FILE *out)
unique_ptr< CoefBigTermConsumer > createPolynomialWriter (FILE *out)
bool supportsInput (const DataType &type) const
bool supportsOutput (const DataType &type) const

Protected Member Functions

virtual BigTermConsumer * doCreateIdealWriter (FILE *out)=0
virtual CoefBigTermConsumer * doCreatePolynomialWriter (FILE *out)=0

Detailed Description

An IOHandler implements input and output for some format in such a way that client code does not need to know which format is being used. An IOHandler need have no mutable state of its own. If it needs to track state, that state is either passed through each method call, or the IOHandler returns an object that takes care of further IO and which itself has state.

Member Function Documentation

◆ readIdeal()

void IOHandler::readIdeal ( Scanner & in,
InputConsumer & consumer )

Read an ideal and feed it to the consumer.

◆ readIdeals()

void IOHandler::readIdeals ( Scanner & in,
InputConsumer & consumer )

Read a number of ideals and feed them to the consumer.


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