/** @file lorentzidx.h
*
- * Interface to GiNaC's lorentz indices.
- *
+ * Interface to GiNaC's lorentz indices. */
+
+/*
* GiNaC Copyright (C) 1999 Johannes Gutenberg University Mainz, Germany
*
* This program is free software; you can redistribute it and/or modify
#include <string>
#include <vector>
+#include <ginac/idx.h>
+
+#ifndef NO_GINAC_NAMESPACE
+namespace GiNaC {
+#endif // ndef NO_GINAC_NAMESPACE
class lorentzidx : public idx
{
extern const lorentzidx some_lorentzidx;
extern type_info const & typeid_lorentzidx;
-// macros
+// utility functions
+inline const lorentzidx &ex_to_lorentzidx(const ex &e)
+{
+ return static_cast<const lorentzidx &>(*e.bp);
+}
-#define ex_to_lorentzidx(X) (static_cast<lorentzidx const &>(*(X).bp))
+#ifndef NO_GINAC_NAMESPACE
+} // namespace GiNaC
+#endif // ndef NO_GINAC_NAMESPACE
#endif // ndef __GINAC_LORENTZIDX_H__