Re: [ROOT] IgnoreTObjectStreamer

From: Rene Brun (Rene.Brun@cern.ch)
Date: Fri Dec 14 2001 - 14:56:56 MET


Hi Thomas,

I am aware of this problem in case one wants to use both options.
I will work on this next year.

Note that the overhead introduced by TObject on disk is marginal if you use
compression. I see so many cases where users have plenty of members
that are simple flags and for which the TObject::fBits woulkd be a much better
alternative.

Rene Brun

Thomas Bretz wrote:
> 
> Hi all,
> 
> I have two classes A and B based on a class Base which inherits from
> TObject, like:
> 
> class Base : public TObject;
> class A : public Base;
> clase B : public Base;
> 
> For A I want to write fUniqueId and fBits, for B I don't want to,
> becuase:
>  - B is written a millons of times (here it is a matter of disc space)
>  - A is referenced by TRef objects. To use this feature I understood,
> that I have to write fUniqueId.
> 
> >From the documentation I found, that calling IgnoreTObjectStreamer is
> only allowed for a class directly inherited from TObject (Base). What do
> I do? Is it impossible?
> 
> Best regards,
> Thomas.



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:12 MET