Re: TClass::GetClassInfo now returns void*

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Mon, 2 Jun 2008 15:18:46 +0200


Nick,

Instead of

TH1::Class()->Size();
do
TClass::GetClass("TH1")->Size();

Rene

Nick West wrote:
> Hi Rene,
>
>
>> You can get the size of a class by simply calling TClass::Size, eg
>> TH1::Class()->Size();
>>
>
> My problem is that I only know the name of the class not the
> class itself or, of course, I could have used sizeof.
>
> Cheers,
>
> Nick
>
>> Rene Brun
>>
>> Nick West wrote:
>>
>>> Hi Rene,
>>>
>>>
>>>
>>>> The idea of the recent change is to reduce the exposition
>>>>
>> of the CINT
>>
>>>> interface in the ROOT code in view of the transition to the new
>>>> version of CINT based on Reflex to be introduced later this year.
>>>> At the time of the PRO release end of June, the direct
>>>>
>> calls to CINT
>>
>>>> will only be in the TCint class.
>>>> The ROOT classes that were previously calling CINT directly are now
>>>> calling a TInterpreter virtual interface. Today the only concrete
>>>> implementation of TInterpreter is TCint. Soon we will have TCint7
>>>> (the new version with Reflex) and will be possible to select at
>>>> startup time which version you want to use.
>>>> We want to keep the old and new versions for some time (checking
>>>> results and performance).
>>>>
>>>> If you want to be able to run with a future version, I
>>>>
>> recommend you
>>
>>>> to call the TInterpreter interface.
>>>> see examples in the TClass code. TInterpreter and TCint
>>>>
>> classes have
>>
>>>> been extended to support all calls to CINT.
>>>>
>>>>
>>> Thanks, I am happy to adapt to the TInterpreter but cannot find the
>>> examples in the TClass code you refer to. Perhaps I misunderstood
>>> you. I have looked at TClass.h and TClass.cxx for
>>>
>>> 24077 2008-05-31 19:39
>>>
>>> and the only reference to TInterpreter I can find is:-
>>>
>>> #include "TInterpreter.h"
>>>
>>> What I need is to find the size of an object given the name of its
>>> class.
>>> How do I do that now?
>>>
>>> Thanks,
>>>
>>> Nick.
>>>
>>>
>>>
>>
>
>
Received on Mon Jun 02 2008 - 15:19:14 CEST

This archive was generated by hypermail 2.2.0 : Mon Jun 02 2008 - 17:50:01 CEST