]> www.ginac.de Git - ginac.git/blobdiff - ginac/operators.h
#ifndef around namespace GiNaC { }
[ginac.git] / ginac / operators.h
index 7ccd39f69bf17cdcafe665281bc28f0be0811229..01210fc1c917a1033739cddaa6c4a08645c8c7b0 100644 (file)
@@ -1,7 +1,8 @@
 /** @file operators.h
  *
- *  Interface to GiNaC's overloaded operators.
- *
+ *  Interface to GiNaC's overloaded operators. */
+
+/*
  *  GiNaC Copyright (C) 1999 Johannes Gutenberg University Mainz, Germany
  *
  *  This program is free software; you can redistribute it and/or modify
 
 #include <iostream>
 
+#ifndef NO_GINAC_NAMESPACE
+namespace GiNaC {
+#endif // ndef NO_GINAC_NAMESPACE
+
+class ex;
+class numeric;
+class relational;
+
 // binary arithmetic operators ex with ex
 ex operator+(ex const & lh, ex const & rh);
 ex operator-(ex const & lh, ex const & rh);
@@ -85,6 +94,10 @@ ex operator-(ex const & lh);
 
 numeric operator+(numeric const & lh);
 numeric operator-(numeric const & lh);
+numeric& operator++(numeric & rh);
+numeric& operator--(numeric & rh);
+numeric operator++(numeric & lh, int);
+numeric operator--(numeric & lh, int);
 
 // binary relational operators ex with ex
 relational operator==(ex const & lh, ex const & rh);
@@ -118,4 +131,8 @@ relational operator>=(numeric const & lh, ex const & rh);
 ostream & operator<<(ostream & os, ex const & e);
 istream & operator>>(istream & is, ex & e);
 
+#ifndef NO_GINAC_NAMESPACE
+} // namespace GiNaC
+#endif // ndef NO_GINAC_NAMESPACE
+
 #endif // ndef __GINAC_OPERATORS_H__