/** @file lorentzidx.cpp
*
- * Implementation of GiNaC's lorentz indices. */
+ * Implementation of GiNaC's Lorentz indices. */
/*
* GiNaC Copyright (C) 1999-2001 Johannes Gutenberg University Mainz, Germany
#include "lorentzidx.h"
#include "lst.h"
+#include "symbol.h"
#include "archive.h"
#include "utils.h"
#include "debugmsg.h"
lorentzidx::lorentzidx(bool cov, bool oonly, unsigned dimp)
: idx(cov), orthogonal_only(oonly), dim_parallel_space(dimp)
{
- debugmsg("lorentzidx constructor from bool",LOGLEVEL_CONSTRUCT);
+ debugmsg("lorentzidx constructor from bool,bool,unsigned",LOGLEVEL_CONSTRUCT);
// serial is incremented in idx::idx(bool)
if (oonly) {
name="muorth"+ToString(serial);
return inherited::info(inf);
}
-//////////
-// new virtual functions which can be overridden by derived classes
-//////////
-
-// none
-
//////////
// non-virtual functions in this class
//////////
}
//////////
-// static member variables
-//////////
-
-// none
-
-//////////
-// global constants
+// global functions
//////////
-const lorentzidx some_lorentzidx;
-const std::type_info & typeid_lorentzidx = typeid(some_lorentzidx);
+/** Return the global symbol that represents the dimension D of spacetime. */
+ex Dim(void)
+{
+ static symbol *d = new symbol("dim");
+ return *d;
+}
#ifndef NO_NAMESPACE_GINAC
} // namespace GiNaC