]> www.ginac.de Git - ginac.git/blobdiff - ginac/symmetry.h
use new-style print methods
[ginac.git] / ginac / symmetry.h
index 0b805edc08c794a607b965e93e7bb95f3e55fab1..d5a3ca8d21bd77e547693e432ccc4ef81b9e34f3 100644 (file)
@@ -61,10 +61,6 @@ public:
        /** Create node with two children. */
        symmetry(symmetry_type t, const symmetry &c1, const symmetry &c2);
 
        /** Create node with two children. */
        symmetry(symmetry_type t, const symmetry &c1, const symmetry &c2);
 
-       // functions overriding virtual functions from base classes
-public:
-       void print(const print_context & c, unsigned level = 0) const;
-
        // non-virtual functions in this class
 public:
        /** Get symmetry type. */
        // non-virtual functions in this class
 public:
        /** Get symmetry type. */
@@ -85,6 +81,10 @@ public:
        /** Check whether this node actually represents any kind of symmetry. */
        bool has_symmetry() const {return type != none || !children.empty(); }
 
        /** Check whether this node actually represents any kind of symmetry. */
        bool has_symmetry() const {return type != none || !children.empty(); }
 
+protected:
+       void do_print(const print_context & c, unsigned level) const;
+       void do_print_tree(const print_tree & c, unsigned level) const;
+
        // member variables
 private:
        /** Type of symmetry described by this node. */
        // member variables
 private:
        /** Type of symmetry described by this node. */