MathTypeLibrary(libmath++) 0.0.3
|
#include <printer.h>
Static Public Member Functions | |
static void | printOn (std::ostream &AOutput, const TNode< T > *AExpr) |
static std::string | print (const TNode< T > *AExpr) |
The TPrinter<> visitor class implements stream printing for for the expression tree. Use the static printOn method to print.
static std::string math::TPrinter< T >::print | ( | const TNode< T > * | AExpr | ) | [static] |
print prints given expression, AExpr, into a std::string and returns its value.
This is just a wrapper method to printon with std::ostringstream, but often used.
static void math::TPrinter< T >::printOn | ( | std::ostream & | AOutput, |
const TNode< T > * | AExpr | ||
) | [static] |
printOn prints given expression, AExpr, to the given output stream AOutput.