Frobby  0.9.5
Protected Member Functions | Private Member Functions | Private Attributes | List of all members
IO::IOHandlerImpl Class Referenceabstract

This class contains a minimum level of functionality that makes it more convenient to derive from than IOHandler. More...

#include <IOHandlerImpl.h>

Inheritance diagram for IO::IOHandlerImpl:
IOHandler IO::CountingIOHandler IO::Fourti2IOHandler IO::IOHandlerCommon IO::NewMonosIOHandler IO::NullIOHandler IO::CoCoA4IOHandler IO::Macaulay2IOHandler IO::MonosIOHandler IO::SingularIOHandler

Protected Member Functions

 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...
 

Private Member Functions

virtual BigTermConsumerdoCreateIdealWriter (FILE *out)=0
 
virtual CoefBigTermConsumerdoCreatePolynomialWriter (FILE *out)
 
virtual void doReadTerm (Scanner &in, InputConsumer &term)
 
virtual void doReadIdeal (Scanner &in, InputConsumer &consumer)
 
virtual void doReadIdeals (Scanner &in, InputConsumer &consumer)
 
virtual void doReadPolynomial (Scanner &in, CoefBigTermConsumer &consumer)
 
virtual void doReadSatBinomIdeal (Scanner &in, SatBinomConsumer &consumer)
 
virtual const char * doGetName () const
 
virtual const char * doGetDescription () const
 
virtual bool doSupportsInput (const DataType &type) const
 
virtual bool doSupportsOutput (const DataType &type) const
 
virtual bool doHasMoreInput (Scanner &in) const
 

Private Attributes

vector< const DataType * > _supportedInputs
 
vector< const DataType * > _supportedOutputs
 
const char * _formatName
 
const char * _formatDescription
 

Additional Inherited Members

- 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< BigTermConsumercreateIdealWriter (FILE *out)
 
auto_ptr< BigTermConsumercreateIdealListWriter (FILE *out)
 
auto_ptr< CoefBigTermConsumercreatePolynomialWriter (FILE *out)
 
bool supportsInput (const DataType &type) const
 
bool supportsOutput (const DataType &type) const
 

Detailed Description

This class contains a minimum level of functionality that makes it more convenient to derive from than IOHandler.

Definition at line 37 of file IOHandlerImpl.h.

Constructor & Destructor Documentation

◆ IOHandlerImpl()

IO::IOHandlerImpl::IOHandlerImpl ( const char *  formatName,
const char *  formatDescription 
)
protected

Definition at line 36 of file IOHandlerImpl.cpp.

Member Function Documentation

◆ doCreateIdealWriter()

BigTermConsumer * IO::IOHandlerImpl::doCreateIdealWriter ( FILE *  out)
privatepure virtual

◆ doCreatePolynomialWriter()

CoefBigTermConsumer * IO::IOHandlerImpl::doCreatePolynomialWriter ( FILE *  out)
privatevirtual

◆ doGetDescription()

const char * IO::IOHandlerImpl::doGetDescription ( ) const
privatevirtual

Implements IOHandler.

Definition at line 104 of file IOHandlerImpl.cpp.

◆ doGetName()

const char * IO::IOHandlerImpl::doGetName ( ) const
privatevirtual

Implements IOHandler.

Definition at line 100 of file IOHandlerImpl.cpp.

◆ doHasMoreInput()

bool IO::IOHandlerImpl::doHasMoreInput ( Scanner in) const
privatevirtual

Implements IOHandler.

Reimplemented in IO::NullIOHandler.

Definition at line 96 of file IOHandlerImpl.cpp.

◆ doReadIdeal()

void IO::IOHandlerImpl::doReadIdeal ( Scanner in,
InputConsumer consumer 
)
privatevirtual

Implements IOHandler.

Reimplemented in IO::NullIOHandler, IO::NewMonosIOHandler, IO::IOHandlerCommon, and IO::Fourti2IOHandler.

Definition at line 78 of file IOHandlerImpl.cpp.

◆ doReadIdeals()

void IO::IOHandlerImpl::doReadIdeals ( Scanner in,
InputConsumer consumer 
)
privatevirtual

Implements IOHandler.

Reimplemented in IO::NullIOHandler, IO::NewMonosIOHandler, IO::IOHandlerCommon, and IO::Fourti2IOHandler.

Definition at line 82 of file IOHandlerImpl.cpp.

◆ doReadPolynomial()

void IO::IOHandlerImpl::doReadPolynomial ( Scanner in,
CoefBigTermConsumer consumer 
)
privatevirtual

Implements IOHandler.

Reimplemented in IO::NullIOHandler, IO::IOHandlerCommon, and IO::Fourti2IOHandler.

Definition at line 86 of file IOHandlerImpl.cpp.

◆ doReadSatBinomIdeal()

void IO::IOHandlerImpl::doReadSatBinomIdeal ( Scanner in,
SatBinomConsumer consumer 
)
privatevirtual

Implements IOHandler.

Reimplemented in IO::NullIOHandler, and IO::Fourti2IOHandler.

Definition at line 91 of file IOHandlerImpl.cpp.

◆ doReadTerm()

void IO::IOHandlerImpl::doReadTerm ( Scanner in,
InputConsumer term 
)
privatevirtual

◆ doSupportsInput()

bool IO::IOHandlerImpl::doSupportsInput ( const DataType type) const
privatevirtual

Implements IOHandler.

Definition at line 50 of file IOHandlerImpl.cpp.

◆ doSupportsOutput()

bool IO::IOHandlerImpl::doSupportsOutput ( const DataType type) const
privatevirtual

Implements IOHandler.

Definition at line 55 of file IOHandlerImpl.cpp.

◆ registerInput()

void IO::IOHandlerImpl::registerInput ( const DataType type)
protected

Specify that input of the argument type is supported.

Definition at line 60 of file IOHandlerImpl.cpp.

◆ registerOutput()

void IO::IOHandlerImpl::registerOutput ( const DataType type)
protected

Specify that output of the argument type is supported.

Definition at line 67 of file IOHandlerImpl.cpp.

Member Data Documentation

◆ _formatDescription

const char* IO::IOHandlerImpl::_formatDescription
private

Definition at line 73 of file IOHandlerImpl.h.

◆ _formatName

const char* IO::IOHandlerImpl::_formatName
private

Definition at line 72 of file IOHandlerImpl.h.

◆ _supportedInputs

vector<const DataType*> IO::IOHandlerImpl::_supportedInputs
private

Definition at line 69 of file IOHandlerImpl.h.

◆ _supportedOutputs

vector<const DataType*> IO::IOHandlerImpl::_supportedOutputs
private

Definition at line 70 of file IOHandlerImpl.h.


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