X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Fpower.h;h=4a22ef445c151787361494bf8adebac4d7ddd491;hp=f8d29c0f24af75c51c91b22d09ddd071b2add4e0;hb=9d92d4b442fc4c1a95685884be4ba0494cd02bbe;hpb=def26469ff96228c66e877bb5594e7d9a24b638f diff --git a/ginac/power.h b/ginac/power.h index f8d29c0f..4a22ef44 100644 --- a/ginac/power.h +++ b/ginac/power.h @@ -25,6 +25,7 @@ #include "basic.h" #include "ex.h" +#include "archive.h" namespace GiNaC { @@ -70,6 +71,10 @@ public: ex conjugate() const; ex real_part() const; ex imag_part() const; + /** Save (a.k.a. serialize) object into archive. */ + void archive(archive_node& n) const; + /** Read (a.k.a. deserialize) object from archive. */ + void read_archive(const archive_node& n, lst& syms); protected: ex derivative(const symbol & s) const; ex eval_ncmul(const exvector & v) const; @@ -100,6 +105,7 @@ protected: ex basis; ex exponent; }; +GINAC_DECLARE_UNARCHIVER(power); // wrapper functions