X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Fidx.h;h=16c515f22380e7c929f09d30a46fa5bebf35b0fb;hp=985226d72d441b9c604c478ff801b0e642f410f7;hb=86ae5e2dfe39fb17f3d6c52a497a8309c9814111;hpb=df27e9de2a3f09aa315d1fe9fb90a3e5a5751989 diff --git a/ginac/idx.h b/ginac/idx.h index 985226d7..16c515f2 100644 --- a/ginac/idx.h +++ b/ginac/idx.h @@ -48,7 +48,6 @@ public: // functions overriding virtual functions from base classes public: - void print(const print_context & c, unsigned level = 0) const; bool info(unsigned inf) const; size_t nops() const; ex op(size_t i) const; @@ -94,6 +93,12 @@ public: * If this is undecidable, throw an exception. */ ex minimal_dim(const idx & other) const; +protected: + void do_print_idx(const print_context & c, 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_tree(const print_tree & c, unsigned level) const; + protected: ex value; /**< Expression that constitutes the index (numeric or symbolic name) */ ex dim; /**< Dimension of space (can be symbolic or numeric) */ @@ -118,7 +123,6 @@ public: // functions overriding virtual functions from base classes public: - void print(const print_context & c, unsigned level = 0) const; bool is_dummy_pair_same_type(const basic & other) const; protected: @@ -135,6 +139,10 @@ public: /** Make a new index with the same value but the opposite variance. */ ex toggle_variance() const; +protected: + void do_print(const print_context & c, unsigned level) const; + void do_print_tree(const print_tree & c, unsigned level) const; + // member variables protected: bool covariant; /**< x.mu, default is contravariant: x~mu */ @@ -163,7 +171,6 @@ public: // functions overriding virtual functions from base classes public: - void print(const print_context & c, unsigned level = 0) const; bool is_dummy_pair_same_type(const basic & other) const; protected: @@ -185,6 +192,11 @@ public: * dottedness. */ ex toggle_variance_dot() const; +protected: + void do_print(const print_context & c, unsigned level) const; + void do_print_latex(const print_latex & c, unsigned level) const; + void do_print_tree(const print_tree & c, unsigned level) const; + // member variables protected: bool dotted;