/** @file coloridx.h
*
- * Interface to GiNaC's color indices.
- *
+ * Interface to GiNaC's color 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>
+#include <ginac/ex.h>
+
+namespace GiNaC {
class coloridx : public idx
{
extern const coloridx some_coloridx;
extern type_info const & typeid_coloridx;
-// macros
+// utility functions
+inline const coloridx &ex_to_coloridx(const ex &e)
+{
+ return static_cast<const coloridx &>(*e.bp);
+}
-#define ex_to_coloridx(X) (static_cast<coloridx const &>(*(X).bp))
+} // namespace GiNaC
#endif // ndef __GINAC_COLORIDX_H__