]> www.ginac.de Git - ginac.git/blobdiff - ginac/power.h
Univariate Hensel lifting now uses upoly.
[ginac.git] / ginac / power.h
index f8d29c0f24af75c51c91b22d09ddd071b2add4e0..4a22ef445c151787361494bf8adebac4d7ddd491 100644 (file)
@@ -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