X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Fbasic.h;h=a5af32366c6c8a063d0f939ec170357f17a88058;hp=a68c2eee0411dba6f5dca043789c55eef099bd18;hb=5ef801553eb39aed7bd2df9dd1aff9d752c3ea9d;hpb=7bc96470ee0dd5c59a8ea1a29b74a781668606a1 diff --git a/ginac/basic.h b/ginac/basic.h index a68c2eee..a5af3236 100644 --- a/ginac/basic.h +++ b/ginac/basic.h @@ -25,6 +25,7 @@ #include // for size_t #include +#include // CINT needs to work properly with #include @@ -45,6 +46,7 @@ class print_context; template class ptr; typedef std::vector exvector; +typedef std::map exmap; /** Function object for map(). */ @@ -135,7 +137,7 @@ protected: public: // substitutions - virtual ex subs(const lst & ls, const lst & lr, unsigned options = 0) const; + virtual ex subs(const exmap & m, unsigned options = 0) const; // function mapping virtual ex map(map_function & f) const; @@ -163,7 +165,7 @@ public: virtual ex series(const relational & r, int order, unsigned options = 0) const; // rational functions - virtual ex normal(lst &sym_lst, lst &repl_lst, int level = 0) const; + virtual ex normal(exmap & repl, int level = 0) const; virtual ex to_rational(lst &repl_lst) const; virtual ex to_polynomial(lst &repl_lst) const; @@ -190,8 +192,7 @@ protected: // functions that should be called from class ex only // non-virtual functions in this class public: - ex subs(const ex & e, unsigned options = 0) const; - ex subs_one_level(const lst & ls, const lst & lr, unsigned options) const; + ex subs_one_level(const exmap & m, unsigned options) const; ex diff(const symbol & s, unsigned nth = 1) const; int compare(const basic & other) const; bool is_equal(const basic & other) const;