Templated functions don’t show up and/or work right in CINT

At least for ROOT 5.20, you should try explicitly specifying the template type, e.g.

Printer p;
p.set<Double_t>(0,0,1.5);

Unfortunately this depends on the author having explicitly entered every imagined instance (Printer::set, Printer::set, ...) into ParangLinkDef.h, and so your favorite instance may just not be there because she has not thought of it.

The most reliable way to use templated functions is just to compile your code (via ACliC or whatever).

The author has not been able to get dictionaries properly generated for templated classes at all, in particular Proofed and Plotter. You can use them only in compiled code.

Why won’t std::string work in Parang?

The official string type in Parang is the ROOT TString. It will be a big mess if the author tried to support both types.

Solution: Please use s.data() to convert your std::string s to a const char* type whenever you need to use it in Parang.

Example:

std::string   category = "hello";
Polystring    taxonomy;
classes += category.data();

-- SueAnnKoay - 15-Jun-2011

Edit | Attach | Watch | Print version | History: r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r1 - 2011-06-15 - SueAnnKoay
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Main All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright &© 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback