X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Fpseries.h;h=f465b8a45c969a13aa1470a0b217f8fae1ce8435;hp=b3d27160c46424c415e3964616905eb0eeba405c;hb=7a092f6f6256bac2e5b7c35222fe7e18ca980401;hpb=83a7ee99a947cbbf331018b803ad6be43a9ccd45 diff --git a/ginac/pseries.h b/ginac/pseries.h index b3d27160..f465b8a4 100644 --- a/ginac/pseries.h +++ b/ginac/pseries.h @@ -3,7 +3,7 @@ * Interface to class for extended truncated power series. */ /* - * GiNaC Copyright (C) 1999-2008 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2009 Johannes Gutenberg University Mainz, Germany * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -20,8 +20,8 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#ifndef __GINAC_SERIES_H__ -#define __GINAC_SERIES_H__ +#ifndef GINAC_SERIES_H +#define GINAC_SERIES_H #include "basic.h" #include "expairseq.h" @@ -60,6 +60,10 @@ public: ex imag_part() const; ex eval_integ() const; ex evalm() 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; @@ -115,6 +119,7 @@ protected: /** Expansion point */ ex point; }; +GINAC_DECLARE_UNARCHIVER(pseries); // utility functions @@ -139,4 +144,4 @@ inline bool is_terminating(const pseries & s) } // namespace GiNaC -#endif // ndef __GINAC_SERIES_H__ +#endif // ndef GINAC_SERIES_H