X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Fnumeric.h;h=28bef0a06e172549699a3c4e2e8074f60accf176;hp=bf5c70134cedcfafcad15a06d3c8f003a1777bca;hb=4fb48e28063e08c613a773378cfa5de608560a84;hpb=2d52c00438cde2c47f43620d26d78022f0d60746 diff --git a/ginac/numeric.h b/ginac/numeric.h index bf5c7013..28bef0a0 100644 --- a/ginac/numeric.h +++ b/ginac/numeric.h @@ -25,6 +25,7 @@ #include "basic.h" #include "ex.h" +#include "archive.h" #include #include @@ -122,6 +123,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: /** Implementation of ex::diff for a numeric always returns 0. * @see ex::diff */ @@ -200,6 +205,7 @@ protected: protected: cln::cl_N value; }; +GINAC_DECLARE_UNARCHIVER(numeric); // global constants