Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

math::TPrinter< T > Class Template Reference

#include <printer.h>

Inheritance diagram for math::TPrinter< T >:

math::TNodeVisitor< T > List of all members.

Static Public Member Functions

void printOn (std::ostream &AOutput, const TNode< T > *AExpr)
std::string print (const TNode< T > *AExpr)

Detailed Description

template<class T>
class math::TPrinter< T >

The TPrinter<> visitor class implements stream printing for for the expression tree. Use the static printOn method to print.

Definition at line 37 of file printer.h.


Member Function Documentation

template<class T>
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.

template<class T>
void math::TPrinter< T >::printOn std::ostream &  AOutput,
const TNode< T > *  AExpr
[static]
 

printOn prints given expression, AExpr, to the given output stream AOutput.


The documentation for this class was generated from the following file:
Generated on Sun Aug 22 06:47:45 2004 for MathTypeLibrary(libmath++) by doxygen 1.3.7