X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Foperators.h;h=a7d84b0ada2642333dc0089c853d3386fdda68d6;hp=a60da5d632f38ee7bc037c3bbe9b85771d2f5387;hb=dd2a73f3fbd8d50f935f380e5d32a26b77e4cdb8;hpb=26741891dadf23162799009b6fd57b4984bd4ce5 diff --git a/ginac/operators.h b/ginac/operators.h index a60da5d6..a7d84b0a 100644 --- a/ginac/operators.h +++ b/ginac/operators.h @@ -3,7 +3,7 @@ * Interface to GiNaC's overloaded operators. */ /* - * GiNaC Copyright (C) 1999 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2000 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 @@ -25,65 +25,65 @@ #include -#ifndef NO_GINAC_NAMESPACE +#ifndef NO_NAMESPACE_GINAC namespace GiNaC { -#endif // ndef NO_GINAC_NAMESPACE +#endif // ndef NO_NAMESPACE_GINAC 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); -ex operator*(ex const & lh, ex const & rh); -ex operator/(ex const & lh, ex const & rh); -ex operator%(ex const & lh, ex const & rh); // non-commutative multiplication +ex operator+(const ex & lh, const ex & rh); +ex operator-(const ex & lh, const ex & rh); +ex operator*(const ex & lh, const ex & rh); +ex operator/(const ex & lh, const ex & rh); +ex operator%(const ex & lh, const ex & rh); // non-commutative multiplication // binary arithmetic operators numeric with numeric -numeric operator+(numeric const & lh, numeric const & rh); -numeric operator-(numeric const & lh, numeric const & rh); -numeric operator*(numeric const & lh, numeric const & rh); -numeric operator/(numeric const & lh, numeric const & rh); +numeric operator+(const numeric & lh, const numeric & rh); +numeric operator-(const numeric & lh, const numeric & rh); +numeric operator*(const numeric & lh, const numeric & rh); +numeric operator/(const numeric & lh, const numeric & rh); // binary arithmetic assignment operators with ex -ex const & operator+=(ex & lh, ex const & rh); -ex const & operator-=(ex & lh, ex const & rh); -ex const & operator*=(ex & lh, ex const & rh); -ex const & operator/=(ex & lh, ex const & rh); -ex const & operator%=(ex & lh, ex const & rh); // non-commutative multiplication +const ex & operator+=(ex & lh, const ex & rh); +const ex & operator-=(ex & lh, const ex & rh); +const ex & operator*=(ex & lh, const ex & rh); +const ex & operator/=(ex & lh, const ex & rh); +const ex & operator%=(ex & lh, const ex & rh); // non-commutative multiplication // binary arithmetic assignment operators with numeric -numeric const & operator+=(numeric & lh, numeric const & rh); -numeric const & operator-=(numeric & lh, numeric const & rh); -numeric const & operator*=(numeric & lh, numeric const & rh); -numeric const & operator/=(numeric & lh, numeric const & rh); +const numeric & operator+=(numeric & lh, const numeric & rh); +const numeric & operator-=(numeric & lh, const numeric & rh); +const numeric & operator*=(numeric & lh, const numeric & rh); +const numeric & operator/=(numeric & lh, const numeric & rh); // unary operators -ex operator+(ex const & lh); -ex operator-(ex const & lh); +ex operator+(const ex & lh); +ex operator-(const ex & lh); -numeric operator+(numeric const & lh); -numeric operator-(numeric const & lh); +numeric operator+(const numeric & lh); +numeric operator-(const numeric & 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); -relational operator!=(ex const & lh, ex const & rh); -relational operator<(ex const & lh, ex const & rh); -relational operator<=(ex const & lh, ex const & rh); -relational operator>(ex const & lh, ex const & rh); -relational operator>=(ex const & lh, ex const & rh); +relational operator==(const ex & lh, const ex & rh); +relational operator!=(const ex & lh, const ex & rh); +relational operator<(const ex & lh, const ex & rh); +relational operator<=(const ex & lh, const ex & rh); +relational operator>(const ex & lh, const ex & rh); +relational operator>=(const ex & lh, const ex & rh); // input/output stream operators -ostream & operator<<(ostream & os, ex const & e); +ostream & operator<<(ostream & os, const ex & e); istream & operator>>(istream & is, ex & e); -#ifndef NO_GINAC_NAMESPACE +#ifndef NO_NAMESPACE_GINAC } // namespace GiNaC -#endif // ndef NO_GINAC_NAMESPACE +#endif // ndef NO_NAMESPACE_GINAC #endif // ndef __GINAC_OPERATORS_H__