X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?a=blobdiff_plain;f=ginac%2Fsymmetry.h;h=d5a3ca8d21bd77e547693e432ccc4ef81b9e34f3;hb=5b7525eb42f71063f46abf3b44ecec739553b57f;hp=0b805edc08c794a607b965e93e7bb95f3e55fab1;hpb=68fdf425abf14d016d5f95ee7b9d06a19a3c5926;p=ginac.git diff --git a/ginac/symmetry.h b/ginac/symmetry.h index 0b805edc..d5a3ca8d 100644 --- a/ginac/symmetry.h +++ b/ginac/symmetry.h @@ -61,10 +61,6 @@ public: /** 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. */ @@ -85,6 +81,10 @@ public: /** 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. */