Thank you for your assistance. I was able to properly serialize
the ex class using char arrays, facilitated by the I/O capabilities of
the archive class.
Eric M. Collins
Send GiNaC-list mailing list submissions to
ginac-list@ginac.de
To subscribe or unsubscribe via the World Wide Web, visit
https://www.cebix.net/mailman/listinfo/ginac-list
or, via email, send a message with subject or body 'help' to
ginac-list-request@ginac.de
You can reach the person managing the list at
ginac-list-owner@ginac.de
When replying, please edit your Subject line so it is more specific
than "Re: Contents of GiNaC-list digest..."
Today's Topics:
1. Serialization of datatypes (Eric Collins)
2. Re: Serialization of datatypes (Chris.Dams@mi.infn.it)
----------------------------------------------------------------------
Message: 1
Date: Sat, 23 Dec 2006 10:14:51 -0600
From: "Eric Collins" <emc2@ra.msstate.edu>
Subject: [GiNaC-list] Serialization of datatypes
To: ginac-list@ginac.de
Message-ID:
<805f78150612230814k3689154epd1d3f1bb5905992@mail.gmail.com >
Content-Type: text/plain; charset="iso-8859-1"
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.
Eric M. Collins
--
Ad Astra Per Aspera
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.cebix.net/pipermail/ginac-list/attachments/20061223/5432b512/attachment-0001.html
------------------------------
Message: 2
Date: Sat, 23 Dec 2006 19:01:10 +0100 (CET)
From: Chris.Dams@mi.infn.it
Subject: Re: [GiNaC-list] Serialization of datatypes
To: "GiNaC discussion list" <ginac-list@ginac.de>
Message-ID: < 2116.83.180.1.48.1166896870.squirrel@webmail.mi.infn.it>
Content-Type: text/plain;charset=utf-8
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!
Chris
------------------------------
_______________________________________________
GiNaC-list mailing list
GiNaC-list@ginac.de
https://www.cebix.net/mailman/listinfo/ginac-list
End of GiNaC-list Digest, Vol 22, Issue 5
*****************************************