RE: [ROOT] ACLiC and templates

From: Philippe Canal (pcanal@fnal.gov)
Date: Tue Mar 19 2002 - 16:39:21 MET


Hi Ray,

In the MyMacro_linkdef.h add

#pragma link C++ function foo(int *,int);
#pragma link C++ function poops(double);
#pragma link C++ function scoop(float,int);

Cheers,
Philippe.

-----Original Message-----
From: owner-roottalk@pcroot.cern.ch
[mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of Ray Fliller III
Sent: Tuesday, March 19, 2002 8:40 AM
To: ROOT mailing list
Subject: RE: [ROOT] ACLiC and templates


On Mon, 18 Mar 2002, Philippe Canal wrote:

> Hi Jacek,
> 
> As of ROOT 3.03.02, ACLiC can be given extra instruction using the content
> of a file named 'MyMacro_linkdef.h' (the _linkdef suffix is customizable).
> 
> In this file you can enter any kind of #pragma request and they will
> be honored.
> 
> In you case you would need:
> 
> // MyMacro_linkdef.h
> #pragma link C++ class MyTemplate<MyClass1>+;
> #pragma link C++ class MyTemplate<MyClass2>+;
> 
> Cheers,
> Philippe.
> 

How would you do the same for template functions like:

template <class X> void foo(X *a, Int_t n)
or
template <class Y> Y poops(Y a)
or even
template <class X, class Y>  void scoops(X a, Y b)

Thanks a bunch.

-- 

 RAINMAN
      "How much does a piece of gum cost Ray?"
      "About $100."
      "How much does a new car cost Ray?"
      "`Bout $100."
      "There goes working for NASA!"

==================================================================
Ray Fliller: rfliller@bnl.gov      Office Phone: (631)-344-6124 
C-A Accelerator Physics            Dept. Fax: (631)-344-5954
Building 911B
Brookhaven National Lab
Upton, NY 11973                    Office: Room 211

http://www.agsrhichome.bnl.gov/People/rfliller/
==================================================================



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:46 MET