]> www.ginac.de Git - ginac.git/blobdiff - ginac/lorentzidx.h
* New funny timing added: compute an antipode in Yukawa theory.
[ginac.git] / ginac / lorentzidx.h
index f644fa2bd73b229c80a63657e838e2f1b4da0eef..d4226e1bff313ec5fe40a698e1d128b019a417a5 100644 (file)
@@ -1,6 +1,6 @@
 /** @file lorentzidx.h
  *
- *  Interface to GiNaC's lorentz indices. */
+ *  Interface to GiNaC's Lorentz indices. */
 
 /*
  *  GiNaC Copyright (C) 1999-2001 Johannes Gutenberg University Mainz, Germany
 #include <vector>
 #include "idx.h"
 
-#ifndef NO_NAMESPACE_GINAC
 namespace GiNaC {
-#endif // ndef NO_NAMESPACE_GINAC
 
-/** Class of indices for Lorentz tensors, to tell them apart from other index
- *  families like color indices. The indices of this class also support the
- *  case of P-O-decomposed D-dimensional spacetime, where the parallel space
- *  is a Minkowski-like space with integral dimension P and the orthogonal
- *  space is a Euclidean space with (possibly complex) dimension D-P. */
+
+/** Class of indices for Lorentz tensors, to tell them apart from other
+ *  index families like color indices. The indices of this class also
+ *  support the case of P-O-decomposed D-dimensional spacetime, where the
+ *  parallel space is a Minkowski space with integral dimension P and the
+ *  orthogonal space is a Euclidean space with (possibly complex) dimension
+ *  D-P. The dimension D of spacetime is represented by the global symbol
+ *  that is returned by the Dim() function. */
 class lorentzidx : public idx
 {
        GINAC_DECLARE_REGISTERED_CLASS(lorentzidx, idx)
@@ -45,16 +46,6 @@ class lorentzidx : public idx
 
 // member functions
 
-       // default constructor, destructor, copy constructor assignment operator and helpers
-public:
-       lorentzidx();
-       ~lorentzidx();
-       lorentzidx (const lorentzidx & other);
-       const lorentzidx & operator=(const lorentzidx & other);
-protected:
-       void copy(const lorentzidx & other);
-       void destroy(bool call_parent);
-
        // other constructors
 public:
        explicit lorentzidx(bool cov, bool oonly=false, unsigned dimp=0);
@@ -66,7 +57,6 @@ public:
 
        // functions overriding virtual functions from bases classes
 public:
-       basic * duplicate() const;
        void printraw(std::ostream & os) const;
        void printtree(std::ostream & os, unsigned indent) const;
        void print(std::ostream & os, unsigned upper_precedence=0) const;
@@ -91,19 +81,14 @@ protected:
        unsigned dim_parallel_space; /**< Dimension of parallel space */
 };
 
-// global constants
-
-extern const lorentzidx some_lorentzidx;
-extern const std::type_info & typeid_lorentzidx;
-
 // utility functions
 inline const lorentzidx &ex_to_lorentzidx(const ex &e)
 {
        return static_cast<const lorentzidx &>(*e.bp);
 }
 
-#ifndef NO_NAMESPACE_GINAC
+ex Dim(void);
+
 } // namespace GiNaC
-#endif // ndef NO_NAMESPACE_GINAC
 
 #endif // ndef __GINAC_LORENTZIDX_H__