X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?a=blobdiff_plain;f=ginac%2Florentzidx.h;h=25c91723a5d8476e686f475d1c739acc70ba7f10;hb=d7512158475455f647f6fc5f8a9d33f674652783;hp=b2315527243d67d87c4c598b07496f513684f451;hpb=15d4b353c85f8815a95d97ab977c9ca48e155574;p=ginac.git diff --git a/ginac/lorentzidx.h b/ginac/lorentzidx.h index b2315527..25c91723 100644 --- a/ginac/lorentzidx.h +++ b/ginac/lorentzidx.h @@ -33,6 +33,8 @@ namespace GiNaC { class lorentzidx : public idx { + GINAC_DECLARE_REGISTERED_CLASS(lorentzidx, idx) + friend class simp_lor; friend class scalar_products; @@ -42,20 +44,20 @@ class lorentzidx : public idx public: lorentzidx(); ~lorentzidx(); - lorentzidx (lorentzidx const & other); - lorentzidx const & operator=(lorentzidx const & other); + lorentzidx (const lorentzidx & other); + const lorentzidx & operator=(const lorentzidx & other); protected: - void copy(lorentzidx const & other); + void copy(const lorentzidx & other); void destroy(bool call_parent); // other constructors public: explicit lorentzidx(bool cov, bool oonly=false, unsigned dimp=0); - explicit lorentzidx(string const & n, bool cov=false, + explicit lorentzidx(const string & n, bool cov=false, bool oonly=false, unsigned dimp=0); - explicit lorentzidx(char const * n, bool cov=false, + explicit lorentzidx(const char * n, bool cov=false, bool oonly=false, unsigned dimp=0); - explicit lorentzidx(unsigned const v, bool cov=false); + explicit lorentzidx(unsigned v, bool cov=false); // functions overriding virtual functions from bases classes public: @@ -83,7 +85,7 @@ protected: // global constants extern const lorentzidx some_lorentzidx; -extern type_info const & typeid_lorentzidx; +extern const type_info & typeid_lorentzidx; // utility functions inline const lorentzidx &ex_to_lorentzidx(const ex &e)