/** @file isospin.h
*
- * Interface to GiNaC's isospin objects.
- *
+ * Interface to GiNaC's isospin objects. */
+
+/*
* GiNaC Copyright (C) 1999 Johannes Gutenberg University Mainz, Germany
*
* This program is free software; you can redistribute it and/or modify
#include <string>
#include <ginac/indexed.h>
+#ifndef NO_GINAC_NAMESPACE
+namespace GiNaC {
+#endif // ndef NO_GINAC_NAMESPACE
+
/** Base class for isospin object */
class isospin : public indexed
{
extern const isospin some_isospin;
extern type_info const & typeid_isospin;
-// macros
+// utility functions
+inline const isospin &ex_to_isospin(const ex &e)
+{
+ return static_cast<const isospin &>(*e.bp);
+}
-#define ex_to_isospin(X) static_cast<isospin const &>(*(X).bp)
+#ifndef NO_GINAC_NAMESPACE
+} // namespace GiNaC
+#endif // ndef NO_GINAC_NAMESPACE
#endif // ndef __GINAC_ISOSPIN_H__
-
-