]> www.ginac.de Git - ginac.git/blobdiff - ginac/expair.h
archive property example uses propinfovector
[ginac.git] / ginac / expair.h
index 2f34b4b8795afc17f40526f2c7709d7f6deb049b..74744e0213e3d7f1ea65af0936412602fa76ca8a 100644 (file)
@@ -25,6 +25,7 @@
 
 #include "ex.h"
 #include "numeric.h"
+#include "print.h"
 
 namespace GiNaC {
 
@@ -81,14 +82,12 @@ public:
                        return coeff.compare(other.coeff);
        }
        
-       /** Output to ostream in ugly raw format. */
-       void printraw(std::ostream & os) const
+       void print(std::ostream & os) const
        {
-               os << "expair(";
-               rest.printraw(os);
-               os << ",";
-               coeff.printraw(os);
-               os << ")";
+               os << "expair:";
+               print_tree c(os);
+               rest.print(c, c.delta_indent);
+               coeff.print(c, c.delta_indent);
        }
        
        /** True if this is of the form (numeric,ex(1)). */