/** @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
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__
-
-