Skip to content
Snippets Groups Projects
Commit 20d59524 authored by Rene Brun's avatar Rene Brun
Browse files

-Add include "TROOT.h" in all implementation files that were assuming

that TROOT was included via TClass.h


-In TClass.h:
 --Remove the include of TROOT.h
 --add the following static member
   static IdMap_t    *fgIdMap;          //Map from typeid to TClass pointer

 --add the following functions:
   static void           AddClass(TClass *cl);
   static void           RemoveClass(TClass *cl);

 --Replace the inline definitions of GetClass functions by
   template <typename T> TClass* GetClass(      T**       /* dummy */) { return GetClass((T*)0); }
   template <typename T> TClass* GetClass(const T**       /* dummy */) { return GetClass((T*)0); }

-In TClass.cxx:
 --Instead of forwarding the calls to gROOT->GetClass, move the code
  originally in TROOT in the TClass::GetClass functions
 --Move class TMapTypeToTClass from TROOT to TClass.


git-svn-id: http://root.cern.ch/svn/root/trunk@17561 27541ba8-7e3a-0410-8455-c3a389f83636
parent 12b5327d
No related branches found
No related tags found
No related merge requests found
Showing
with 59 additions and 278 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment