Re: [ROOT] TGraph with integers

From: Volker Hejny (V.Hejny@fz-juelich.de)
Date: Thu Nov 08 2001 - 15:20:36 MET


Hallo,

On Wed, Nov 07, 2001 at 04:38:36PM +0000, Rene Brun wrote:
> Easy to implement. I do not think that providing an interface also for shorts
> or chars will be useful.
> I will add the additional function with ints in the next iteration.

maybe a stupid question, but if I understand the CINT limitations correctly
(as they were given at http://root.cern.ch/root/Cint.phtml?limitations),
member function templates in principle work if they are placed inline
in the class definition.

Following this, a TGraph constructor like
template <typename elemType> TGraph(Int_t n, const elemType *x, 
                                             const elemType *y) { ... }
should be possible (at least with every type convertable to double).

Just for curiosity I tried this (deleting the int,float and double ctrs),
with the result, that the compiled code (including root itself) still does 
work, but the ctr is not available interactively.

Did I miss something in the CINT limitations?

Best regards,
Volker

-- 
Dr. Volker Hejny                Tel: 02461/616853                      ** 
Institut f. Kernphysik          Fax: 02461/613930                     **
---------------------------------------------------------------- **  ** ---  
Forschungszentrum Juelich GmbH, D-52425 Juelich                    **



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