]> www.ginac.de Git - ginac.git/blobdiff - ginac/add.h
use new-style print methods
[ginac.git] / ginac / add.h
index 02969f01fa4a7274626e6208e3ad6c46f9ef2072..d636d0ad1026f272c8721443a9d2e9cad7cc9627 100644 (file)
@@ -45,7 +45,6 @@ public:
        
        // functions overriding virtual functions from base classes
 public:
-       void print(const print_context & c, unsigned level = 0) const;
        unsigned precedence() const {return 40;}
        bool info(unsigned inf) const;
        int degree(const ex & s) const;
@@ -73,6 +72,14 @@ protected:
                                               const ex & c) const;
        ex recombine_pair_to_ex(const expair & p) const;
        ex expand(unsigned options=0) const;
+
+       // non-virtual functions in this class
+protected:
+       void print_add(const print_context & c, const char *openbrace, const char *closebrace, const char *mul_sym, unsigned level) const;
+       void do_print(const print_context & c, unsigned level) const;
+       void do_print_latex(const print_latex & c, unsigned level) const;
+       void do_print_csrc(const print_csrc & c, unsigned level) const;
+       void do_print_python_repr(const print_python_repr & c, unsigned level) const;
 };
 
 // utility functions