]> www.ginac.de Git - ginac.git/blobdiff - ginac/operators.h
#ifndef around namespace GiNaC { }
[ginac.git] / ginac / operators.h
index dfd985f5af54dd746399acde67f2fffc10fc16aa..01210fc1c917a1033739cddaa6c4a08645c8c7b0 100644 (file)
@@ -2,15 +2,36 @@
  *
  *  Interface to GiNaC's overloaded operators. */
 
-#ifndef _OPERATORS_H_
-#define _OPERATORS_H_
+/*
+ *  GiNaC Copyright (C) 1999 Johannes Gutenberg University Mainz, Germany
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ */
+
+#ifndef __GINAC_OPERATORS_H__
+#define __GINAC_OPERATORS_H__
 
 #include <iostream>
-#include "basic.h"
-#include "ex.h"
-#include "numeric.h"
-#include "relational.h"
 
+#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);
@@ -73,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);
@@ -106,5 +131,8 @@ relational operator>=(numeric const & lh, ex const & rh);
 ostream & operator<<(ostream & os, ex const & e);
 istream & operator>>(istream & is, ex & e);
 
-#endif // ndef _OPERATORS_H_
+#ifndef NO_GINAC_NAMESPACE
+} // namespace GiNaC
+#endif // ndef NO_GINAC_NAMESPACE
 
+#endif // ndef __GINAC_OPERATORS_H__