-
- Downloads
From Philippe:
A) Support for top level STL Containers. You can now do list<int> *ptr = new list<int>; tree->Branch("mystl","list<int>",&ptr); B) Autodetection of the pointer type passed to the branch constructor. So you can now do: list<int> *ptr = new list<int>; tree->Branch("mystl",&ptr); C) Check of the type of the pointer type passed to the branch constructor. So that you now get an error: list<int> *ptr = new list<int>; tree->Branch("mystl","list<float>",&ptr); Error in <TTree::Branch>: The class requested (list<float>) for the branch "mystl" is different from the type of the pointer passed (list<int>) D) TTree's SetBranchAddress now also check its input address (unless the user explicitly specify (char*) or (void*). Test/Event and the tree tutorials have been updated to take advantage of the new syntax. git-svn-id: http://root.cern.ch/svn/root/trunk@10898 27541ba8-7e3a-0410-8455-c3a389f83636
Showing
- cint/src/init.c 15 additions, 15 deletionscint/src/init.c
- cint/src/v6_init.cxx 15 additions, 15 deletionscint/src/v6_init.cxx
- io/src/TStreamerInfo.cxx 17 additions, 1 deletionio/src/TStreamerInfo.cxx
- meta/inc/TDataType.h 2 additions, 1 deletionmeta/inc/TDataType.h
- meta/src/TClass.cxx 2 additions, 2 deletionsmeta/src/TClass.cxx
- meta/src/TDataType.cxx 25 additions, 1 deletionmeta/src/TDataType.cxx
- meta/src/TStreamerElement.cxx 2 additions, 17 deletionsmeta/src/TStreamerElement.cxx
- meta/src/TStreamerInfo.cxx 17 additions, 1 deletionmeta/src/TStreamerInfo.cxx
- test/MainEvent.cxx 3 additions, 3 deletionstest/MainEvent.cxx
- test/stress.cxx 2 additions, 2 deletionstest/stress.cxx
- tree/Module.mk 13 additions, 0 deletionstree/Module.mk
- tree/inc/LinkDef2.h 35 additions, 0 deletionstree/inc/LinkDef2.h
- tree/inc/TBranchElement.h 2 additions, 2 deletionstree/inc/TBranchElement.h
- tree/inc/TChain.h 2 additions, 1 deletiontree/inc/TChain.h
- tree/inc/TChainElement.h 16 additions, 7 deletionstree/inc/TChainElement.h
- tree/inc/TTree.h 34 additions, 2 deletionstree/inc/TTree.h
- tree/src/ManualTree2.cxx 326 additions, 0 deletionstree/src/ManualTree2.cxx
- tree/src/ManualTree2.h 46 additions, 0 deletionstree/src/ManualTree2.h
- tree/src/ManualTree2Body.h 101 additions, 0 deletionstree/src/ManualTree2Body.h
- tree/src/TBranchElement.cxx 28 additions, 12 deletionstree/src/TBranchElement.cxx
Loading
Please register or sign in to comment