Frobby
0.9.5
|
This class contains further functionality that makes it more convenient to derive from than IOHandlerImpl in most but not all cases. More...
#include <IOHandlerCommon.h>
Public Member Functions | |
IOHandlerCommon (const char *formatName, const char *formatDescription) | |
void | readRing (Scanner &in, VarNames &names) |
Reads a ring, i.e. More... | |
bool | peekRing (Scanner &in) |
Returns true if what follows in the input is a ring, assuming there are no syntax errors. More... | |
void | readBareIdeal (Scanner &in, InputConsumer &consumer) |
Reads an ideal without a ring preceding it. More... | |
void | readBarePolynomial (Scanner &in, const VarNames &names, CoefBigTermConsumer &consumer) |
Reads a polynomial without a ring preceding it. More... | |
Public Member Functions inherited from IOHandler | |
virtual | ~IOHandler () |
void | readIdeal (Scanner &in, InputConsumer &consumer) |
Read an ideal and feed it to the consumer. More... | |
void | readIdeals (Scanner &in, InputConsumer &consumer) |
Read a number of ideals and feed them to the consumer. More... | |
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 |
auto_ptr< BigTermConsumer > | createIdealWriter (FILE *out) |
auto_ptr< BigTermConsumer > | createIdealListWriter (FILE *out) |
auto_ptr< CoefBigTermConsumer > | createPolynomialWriter (FILE *out) |
bool | supportsInput (const DataType &type) const |
bool | supportsOutput (const DataType &type) const |
Private Member Functions | |
virtual void | doReadIdeal (Scanner &in, InputConsumer &consumer) |
virtual void | doReadIdeals (Scanner &in, InputConsumer &consumer) |
virtual void | doReadPolynomial (Scanner &in, CoefBigTermConsumer &consumer) |
virtual void | doReadRing (Scanner &in, VarNames &names)=0 |
virtual bool | doPeekRing (Scanner &in)=0 |
virtual void | doReadBareIdeal (Scanner &in, InputConsumer &consumer) |
virtual void | doReadBarePolynomial (Scanner &in, const VarNames &names, CoefBigTermConsumer &consumer) |
Additional Inherited Members | |
Protected Member Functions inherited from IO::IOHandlerImpl | |
IOHandlerImpl (const char *formatName, const char *formatDescription) | |
void | registerInput (const DataType &type) |
Specify that input of the argument type is supported. More... | |
void | registerOutput (const DataType &type) |
Specify that output of the argument type is supported. More... | |
This class contains further functionality that makes it more convenient to derive from than IOHandlerImpl in most but not all cases.
Definition at line 33 of file IOHandlerCommon.h.
IO::IOHandlerCommon::IOHandlerCommon | ( | const char * | formatName, |
const char * | formatDescription | ||
) |
Definition at line 27 of file IOHandlerCommon.cpp.
|
privatepure virtual |
Implemented in IO::SingularIOHandler, IO::MonosIOHandler, IO::Macaulay2IOHandler, and IO::CoCoA4IOHandler.
|
privatevirtual |
Reimplemented in IO::SingularIOHandler, IO::MonosIOHandler, IO::Macaulay2IOHandler, and IO::CoCoA4IOHandler.
Definition at line 87 of file IOHandlerCommon.cpp.
|
privatevirtual |
Reimplemented in IO::SingularIOHandler, IO::Macaulay2IOHandler, and IO::CoCoA4IOHandler.
Definition at line 81 of file IOHandlerCommon.cpp.
|
privatevirtual |
Reimplemented from IO::IOHandlerImpl.
Definition at line 50 of file IOHandlerCommon.cpp.
|
privatevirtual |
Reimplemented from IO::IOHandlerImpl.
Definition at line 57 of file IOHandlerCommon.cpp.
|
privatevirtual |
Reimplemented from IO::IOHandlerImpl.
Definition at line 74 of file IOHandlerCommon.cpp.
Implemented in IO::SingularIOHandler, IO::MonosIOHandler, IO::Macaulay2IOHandler, and IO::CoCoA4IOHandler.
bool IO::IOHandlerCommon::peekRing | ( | Scanner & | in | ) |
Returns true if what follows in the input is a ring, assuming there are no syntax errors.
Definition at line 36 of file IOHandlerCommon.cpp.
void IO::IOHandlerCommon::readBareIdeal | ( | Scanner & | in, |
InputConsumer & | consumer | ||
) |
Reads an ideal without a ring preceding it.
Definition at line 40 of file IOHandlerCommon.cpp.
void IO::IOHandlerCommon::readBarePolynomial | ( | Scanner & | in, |
const VarNames & | names, | ||
CoefBigTermConsumer & | consumer | ||
) |
Reads a polynomial without a ring preceding it.
Definition at line 44 of file IOHandlerCommon.cpp.