]> www.ginac.de Git - ginac.git/blobdiff - ginac/clifford.h
- rotate_31() and golden_hash_ratio() moved to utils.h
[ginac.git] / ginac / clifford.h
index 68a81a452e19b9ec1bcb8a44e930862807213599..49a3613b13f9424f68f143d98735655b89a88592 100644 (file)
@@ -1,7 +1,8 @@
 /** @file clifford.h
  *
- *  Interface to GiNaC's clifford objects.
- *
+ *  Interface to GiNaC's clifford objects. */
+
+/*
  *  GiNaC Copyright (C) 1999 Johannes Gutenberg University Mainz, Germany
  *
  *  This program is free software; you can redistribute it and/or modify
 #define __GINAC_CLIFFORD_H__
 
 #include <string>
+#include <ginac/indexed.h>
+#include <ginac/ex.h>
+
+namespace GiNaC {
 
 /** Base class for clifford object */
 class clifford : public indexed
@@ -79,10 +84,12 @@ private:
 extern const clifford some_clifford;
 extern type_info const & typeid_clifford;
 
-// macros
+// utility functions
+inline const clifford &ex_to_clifford(const ex &e)
+{
+       return static_cast<const clifford &>(*e.bp);
+}
 
-#define ex_to_clifford(X) static_cast<clifford const &>(*(X).bp)
+} // namespace GiNaC
 
 #endif // ndef __GINAC_CLIFFORD_H__
-
-