X-Git-Url: https://ginac.de/ginac.git//ginac.git?a=blobdiff_plain;ds=inline;f=ginac%2Fidx.h;h=d859b2ee1976aee3198f3b294989a30b1af10fc8;hb=f69a24a4fd6caf42ef773d1cef21562a8afa068a;hp=cd1864694ff4cc10b330d4df12fa767e3799a15c;hpb=da64e515abf7243bc4c84ca3631470931c4e6691;p=ginac.git diff --git a/ginac/idx.h b/ginac/idx.h index cd186469..d859b2ee 100644 --- a/ginac/idx.h +++ b/ginac/idx.h @@ -3,7 +3,7 @@ * Interface to GiNaC's indices. */ /* - * GiNaC Copyright (C) 1999-2005 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2007 Johannes Gutenberg University Mainz, Germany * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -96,6 +96,7 @@ public: protected: void print_index(const print_context & c, unsigned level) const; void do_print(const print_context & c, unsigned level) const; + void do_print_csrc(const print_csrc & 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; @@ -207,24 +208,6 @@ protected: // utility functions -/** Specialization of is_exactly_a(obj) for idx objects. */ -template<> inline bool is_exactly_a(const basic & obj) -{ - return obj.tinfo()==TINFO_idx; -} - -/** Specialization of is_exactly_a(obj) for varidx objects. */ -template<> inline bool is_exactly_a(const basic & obj) -{ - return obj.tinfo()==TINFO_varidx; -} - -/** Specialization of is_exactly_a(obj) for spinidx objects. */ -template<> inline bool is_exactly_a(const basic & obj) -{ - return obj.tinfo()==TINFO_spinidx; -} - /** Check whether two indices form a dummy pair. */ bool is_dummy_pair(const idx & i1, const idx & i2);