pelib
2.0.0
|
#include <AlgebraRawOutput.hpp>
Public Member Functions | |
AlgebraRawOutput (std::vector< RawDataOutput * > handlers) | |
AlgebraRawOutput (std::vector< RawDataOutput * > handlers, const std::vector< std::string > &list) | |
virtual | ~AlgebraRawOutput () |
virtual void | dump (std::ostream &o, const Algebra &record) const |
virtual void | dump (std::ostream &o, const AlgebraData *data) const |
virtual void | dump (std::ostream &o, const AlgebraData &data) const |
virtual AlgebraRawOutput & | operator= (const AlgebraRawOutput &rhs) |
Static Public Member Functions | |
static std::vector < RawDataOutput * > | floatOutputs () |
static std::vector < RawDataOutput * > | intFloatOutputs () |
static std::vector < RawDataOutput * > | stringOutputs () |
Protected Member Functions | |
void | deleteOutputs () |
Protected Attributes | |
std::vector< RawDataOutput * > | outputs |
std::vector< std::string > | output_list |
Parser and output class of a collection of algebraic data structures, in AMPL output format
Definition at line 37 of file AlgebraRawOutput.hpp.
pelib::AlgebraRawOutput::AlgebraRawOutput | ( | std::vector< RawDataOutput * > | handlers | ) |
Constructor
handlers | A pair of collections of Algebraic Data parsers and Output. May include parsers and output for scalars, vector, set or matrices for int, float, double or any other basic type. |
Definition at line 50 of file AlgebraRawOutput.cpp.
pelib::AlgebraRawOutput::AlgebraRawOutput | ( | std::vector< RawDataOutput * > | handlers, |
const std::vector< std::string > & | list | ||
) |
Constructor
handlers | A pair of collections of Algebraic Data parsers and Output. May include parsers and output for scalars, vector, set or matrices for int, float, double or any other basic type. |
list | List of element is algebra container to produce in output |
Definition at line 55 of file AlgebraRawOutput.cpp.
pelib::AlgebraRawOutput::~AlgebraRawOutput | ( | ) | [virtual] |
Destructor
Definition at line 61 of file AlgebraRawOutput.cpp.
void pelib::AlgebraRawOutput::deleteOutputs | ( | ) | [protected] |
Flushes all outputs in this instance. used by assignement operator
Definition at line 67 of file AlgebraRawOutput.cpp.
void pelib::AlgebraRawOutput::dump | ( | std::ostream & | o, |
const Algebra & | record | ||
) | const [virtual] |
Writes all derived instance of pelib::AlgebraData in the container to output stream in AMPL output text format
Implements pelib::AlgebraOutput.
Definition at line 89 of file AlgebraRawOutput.cpp.
void pelib::AlgebraRawOutput::dump | ( | std::ostream & | o, |
const AlgebraData * | data | ||
) | const [virtual] |
Writes a single derived instance of pelib::Algebradata to output stream in AMPL output format
Implements pelib::AlgebraOutput.
Definition at line 113 of file AlgebraRawOutput.cpp.
void pelib::AlgebraRawOutput::dump | ( | std::ostream & | o, |
const AlgebraData & | data | ||
) | const [virtual] |
Writes a single derived instance of pelib::Algebradata to output stream in AMPL output format
Definition at line 155 of file AlgebraRawOutput.cpp.
std::vector< RawDataOutput * > pelib::AlgebraRawOutput::floatOutputs | ( | ) | [static] |
Returns output specialized into floating-point content
Definition at line 160 of file AlgebraRawOutput.cpp.
std::vector< RawDataOutput * > pelib::AlgebraRawOutput::intFloatOutputs | ( | ) | [static] |
Returns output specialized into integer and floating-point content
Definition at line 184 of file AlgebraRawOutput.cpp.
AlgebraRawOutput & pelib::AlgebraRawOutput::operator= | ( | const AlgebraRawOutput & | rhs | ) | [virtual] |
Assignment operator. Copies all parsers and output handlers to the recipient instance
Definition at line 76 of file AlgebraRawOutput.cpp.
std::vector< RawDataOutput * > pelib::AlgebraRawOutput::stringOutputs | ( | ) | [static] |
Returns outputs specialized into string content
Definition at line 172 of file AlgebraRawOutput.cpp.
std::vector<std::string> pelib::AlgebraRawOutput::output_list [protected] |
Definition at line 85 of file AlgebraRawOutput.hpp.
std::vector<RawDataOutput*> pelib::AlgebraRawOutput::outputs [protected] |
Definition at line 80 of file AlgebraRawOutput.hpp.