X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Fncmul.h;h=10477938504795cc7390861e07191b5cc09ea278;hp=03b47ca7ae119c9337a31045f0c509469265ba7b;hb=0a1b35cf1e59c9e3aae33de8febaa1c8f4bbe630;hpb=9eab44408b9213d8909b7a9e525f404ad06064dd diff --git a/ginac/ncmul.h b/ginac/ncmul.h index 03b47ca7..10477938 100644 --- a/ginac/ncmul.h +++ b/ginac/ncmul.h @@ -3,7 +3,7 @@ * Interface to GiNaC's non-commutative products of expressions. */ /* - * 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,11 +25,15 @@ #include +#ifndef NO_GINAC_NAMESPACE namespace GiNaC { +#endif // ndef NO_GINAC_NAMESPACE /** Non-commutative product of expressions. */ class ncmul : public exprseq { + GINAC_DECLARE_REGISTERED_CLASS(ncmul, exprseq) + friend class power; friend ex nonsimplified_ncmul(exvector const & v); friend ex simplified_ncmul(exvector const & v); @@ -62,8 +66,8 @@ public: // functions overriding virtual functions from bases classes public: basic * duplicate() const; - void printraw(ostream & os) const; void print(ostream & os, unsigned upper_precedence) const; + void printraw(ostream & os) const; void printcsrc(ostream & os, unsigned upper_precedence) const; bool info(unsigned inf) const; int degree(symbol const & s) const; @@ -114,6 +118,8 @@ inline const ncmul &ex_to_ncmul(const ex &e) return static_cast (*e.bp); } +#ifndef NO_GINAC_NAMESPACE } // namespace GiNaC +#endif // ndef NO_GINAC_NAMESPACE #endif // ndef __GINAC_NCMUL_H__