[ROOT] Streaming templated containers of pointers to disk

From: troy d straszheim (troy@ifh.de)
Date: Thu Jul 22 2004 - 16:58:41 MEST


Hi roottalk-

I have what is hopefully a simple example here.

We have a template class, Container<T>, which contains a pointer to a 
T, and two pointers to containers of T, one "left" and one "right".  
you might imagine this class as a node in a binary search tree.

The idea is to establish that the automatically generated streamers 
properly handle situations where there are more pointers than obects.  
We create a "diamond pattern", like this:

       C0
     /      \
   C1    C2
     \      /
      C3

and then ask C0 to Write() itself to disk, with the intention of 
checking later that all three objects are written and that C1 and C2 
point to the same object.

Unfortunately my test case crashes on OSX and on Linux (with root about 
2 weeks old), during the Write() somewhere.  I can't seem to see what's 
wrong, hopefully I just need a fresh pair of eyes.... any ideas?

Run (via ACLiC) with "root -b streamtest.cxx++"




Thanks, Troy Straszheim.



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:09 MET