* Definition of helper classes for expression output. */
/*
- * GiNaC Copyright (C) 1999-2001 Johannes Gutenberg University Mainz, Germany
+ * GiNaC Copyright (C) 1999-2003 Johannes Gutenberg University Mainz, Germany
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
{
public:
print_context();
- print_context(std::ostream &);
+ print_context(std::ostream &, unsigned options = 0);
std::ostream & s; /**< stream to output to */
+ unsigned options; /**< option flags */
private:
// dummy virtual function to make the class polymorphic
virtual void dummy(void) {}
{
public:
print_latex();
- print_latex(std::ostream &);
+ print_latex(std::ostream &, unsigned options = 0);
+};
+
+/** Context for python pretty-print output. */
+class print_python : public print_context
+{
+public:
+ print_python();
+ print_python(std::ostream &, unsigned options = 0);
+};
+
+/** Context for python-parsable output. */
+class print_python_repr : public print_context
+{
+public:
+ print_python_repr();
+ print_python_repr(std::ostream &, unsigned options = 0);
};
/** Context for tree-like output for debugging. */
{
public:
print_tree(unsigned d = 4);
- print_tree(std::ostream &, unsigned d = 4);
+ print_tree(std::ostream &, unsigned options = 0, unsigned d = 4);
const unsigned delta_indent; /**< size of indentation step */
};
{
public:
print_csrc();
- print_csrc(std::ostream &);
+ print_csrc(std::ostream &, unsigned options = 0);
};
/** Context for C source output using float numbers. */
{
public:
print_csrc_float();
- print_csrc_float(std::ostream &);
+ print_csrc_float(std::ostream &, unsigned options = 0);
};
/** Context for C source output using double numbers. */
{
public:
print_csrc_double();
- print_csrc_double(std::ostream &);
+ print_csrc_double(std::ostream &, unsigned options = 0);
};
/** Context for C source output using CLN numbers. */
{
public:
print_csrc_cl_N();
- print_csrc_cl_N(std::ostream &);
+ print_csrc_cl_N(std::ostream &, unsigned options = 0);
};
/** Check if obj is a T, including base classes. */