/** @file relational.h
*
- * Interface to relations between expressions.
- *
+ * Interface to relations between expressions. */
+
+/*
* GiNaC Copyright (C) 1999 Johannes Gutenberg University Mainz, Germany
*
* This program is free software; you can redistribute it and/or modify
#ifndef __GINAC_RELATIONAL_H__
#define __GINAC_RELATIONAL_H__
+#include <ginac/basic.h>
+#include <ginac/ex.h>
+
+namespace GiNaC {
+
/** This class holds a relation consisting of two expressions and a logical
* relation between them. */
class relational : public basic
extern const relational some_relational;
extern type_info const & typeid_relational;
-#define ex_to_relational(X) static_cast<relational const &>(*(X).bp)
-
-#endif // ndef __GINAC_RELATIONAL_H__
+// utility functions
+inline const relational &ex_to_relational(const ex &e)
+{
+ return static_cast<const relational &>(*e.bp);
+}
+} // namespace GiNaC
+#endif // ndef __GINAC_RELATIONAL_H__