X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Fexpairseq.h;h=a14cecaac00d5bddf852f430d0ee5673243a68d1;hp=55be7cfd1bc25d8e7d0bc40fee15ed84e938bdb8;hb=9eab44408b9213d8909b7a9e525f404ad06064dd;hpb=487e5659efe401683eee0381b0d23f967ffffc3c diff --git a/ginac/expairseq.h b/ginac/expairseq.h index 55be7cfd..a14cecaa 100644 --- a/ginac/expairseq.h +++ b/ginac/expairseq.h @@ -27,6 +27,8 @@ #include #include +namespace GiNaC { + //#define EXPAIRSEQ_USE_HASHTAB typedef vector epvector; @@ -34,7 +36,6 @@ typedef epvector::iterator epviter; inline void iter_swap(epvector::iterator it1, epvector::iterator it2) { - debugmsg("iter_swap epvector",LOGLEVEL_NONMEMBER_FUNCTION); (*it1).rest.swap((*it2).rest); (*it1).coeff.swap((*it2).coeff); } @@ -59,11 +60,9 @@ public: , hashtabsize(0) #endif // def EXPAIRSEQ_USE_HASHTAB { - debugmsg("expairseq default constructor",LOGLEVEL_CONSTRUCT); } ~expairseq() { - debugmsg("expairseq destructor",LOGLEVEL_DESTRUCT); destroy(0); } expairseq(expairseq const & other); @@ -189,6 +188,12 @@ protected: extern const expairseq some_expairseq; extern type_info const & typeid_expairseq; -#define ex_to_expairseq(X) static_cast(*(X).bp) +// utility functions +inline const expairseq &ex_to_expairseq(const ex &e) +{ + return static_cast(*e.bp); +} + +} // namespace GiNaC #endif // ndef __GINAC_EXPAIRSEQ_H__