[GiNaC-list] Serialization of datatypes

Chris.Dams at mi.infn.it Chris.Dams at mi.infn.it
Sat Dec 23 19:01:10 CET 2006

Hi Eric,

> Would anyone be interested in helping me figure out how to serialize the
> datatypes in GiNaC/CLN/GMP?  I've looked at the source headers for some of
> the datatypes and the use of reference counted pointers everywhere makes
> this seem like a non-trivial task.
> I need to be able to pack all data relevant to a particular instantiation
> of
> a datatype (e.g. numeric or pseries), into a contiguous array.  This data
> would then be passed to another process where it would be unpacked into a
> new instantiation of the same datatype.
> Any help, or suggestions of where to begin looking for relevant
> information
> would be much appreciated.

This is already more or less done in the code that archives expressions.
Couldn't you simply pass a *.gar file to the other process? Or maybe
modify that code a bit so that it can be used to do this.

Good luck!

More information about the GiNaC-list mailing list