From Sergei Linev:
From Sergei Linev:

1) In normal constructor I add new argument - mother of directory.
   If it is not specified (for instance, if user creates TDirectory himself), gDirectory will be used.
   In principle, fMother was before, but now it consecutively used in most TDirecory methods, related to
   parent/child relationship.
2) Together with directory fMother member file pointer fFile propogated to all childs.
   Consequently, each directory knows to which file it belongs.
3) When streamed from the file, fFile memeber is assigned from TBuffer::GetParent(). fFile is enougth
   to read keys from the file. Mother directory is assigned later in TKey::ReadObj().

In TDirectory::ReadAll() cast to TNamed was used to find and delete existing object,
   but some TObject also can return correct names (like TCanvas).


git-svn-id: acec3fd5b7ea1eb9e79d6329d318e8118ee2e14f@13911 27541ba8-7e3a-0410-8455-c3a389f83636

dfunke/root,CristinaCristescu/root,abhinavmoudgil95/root,esakellari/root,jrtomps/root,evgeny-boger/root,0x0all/ROOT,sawenzel/root,mattkretz/root,agarciamontoro/root,evgeny-boger/root,georgtroska/root,karies/root,simonpf/root,sawenzel/root,karies/root,mattkretz/root,Y--/root,CristinaCristescu/root,sbinet/cxx-root,vukasinmilosevic/root,satyarth934/root,simonpf/root,sbinet/cxx-root,root-mirror/root,nilqed/root,olifre/root,zzxuanyuan/root-compressor-dummy,omazapa/root,CristinaCristescu/root,beniz/root,veprbl/root,satyarth934/root,mhuwiler/rootauto,gbitzes/root,alexschlueter/cern-root,omazapa/root,smarinac/root,krafczyk/root,nilqed/root,beniz/root,CristinaCristescu/root,agarciamontoro/root,zzxuanyuan/root,georgtroska/root,nilqed/root,root-mirror/root,mhuwiler/rootauto,cxx-hep/root-cern,karies/root,sawenzel/root,thomaskeck/root,georgtroska/root,Y--/root,omazapa/root-old,tc3t/qoot,thomaskeck/root,esakellari/my_root_for_test,gganis/root,mhuwiler/rootauto,Y--/root,dfunke/root,gganis/root,buuck/root,esakellari/my_root_for_test,satyarth934/root,BerserkerTroll/root,Duraznos/root,sbinet/cxx-root,zzxuanyuan/root,krafczyk/root,mhuwiler/rootauto,sirinath/root,Dr15Jones/root,simonpf/root,gganis/root,krafczyk/root,cxx-hep/root-cern,nilqed/root,karies/root,gbitzes/root,perovic/root,sirinath/root,sirinath/root,jrtomps/root,veprbl/root,cxx-hep/root-cern,mkret2/root,root-mirror/root,ffurano/root5,smarinac/root,tc3t/qoot,davidlt/root,arch1tect0r/root,jrtomps/root,gganis/root,omazapa/root-old,ffurano/root5,mhuwiler/rootauto,georgtroska/root,esakellari/my_root_for_test,davidlt/root,gganis/root,karies/root,jrtomps/root,veprbl/root,davidlt/root,zzxuanyuan/root-compressor-dummy,olifre/root,perovic/root,Dr15Jones/root,mkret2/root,smarinac/root,cxx-hep/root-cern,satyarth934/root,omazapa/root-old,evgeny-boger/root,mhuwiler/rootauto,gbitzes/root,BerserkerTroll/root,jrtomps/root,strykejern/TTreeReader,bbockelm/root,CristinaCristescu/root,georgtroska/root,pspe/root,mattkretz/root,tc3t/qoot,mkret2/root,BerserkerTroll/root,simonpf/root,sbinet/cxx-root,Duraznos/root,georgtroska/root,esakellari/my_root_for_test,karies/root,davidlt/root,lgiommi/root,gganis/root,esakellari/root,olifre/root,sbinet/cxx-root,davidlt/root,strykejern/TTreeReader,pspe/root,gganis/root,strykejern/TTreeReader,zzxuanyuan/root,esakellari/my_root_for_test,smarinac/root,thomaskeck/root,lgiommi/root,evgeny-boger/root,sawenzel/root,Y--/root,simonpf/root,agarciamontoro/root,buuck/root,tc3t/qoot,pspe/root,esakellari/root,georgtroska/root,bbockelm/root,sirinath/root,Dr15Jones/root,gganis/root,bbockelm/root,alexschlueter/cern-root,zzxuanyuan/root-compressor-dummy,perovic/root,mhuwiler/rootauto,Y--/root,georgtroska/root,Dr15Jones/root,krafczyk/root,sirinath/root,evgeny-boger/root,davidlt/root,esakellari/root,sbinet/cxx-root,lgiommi/root,esakellari/my_root_for_test,vukasinmilosevic/root,perovic/root,sirinath/root,beniz/root,agarciamontoro/root,zzxuanyuan/root,agarciamontoro/root,abhinavmoudgil95/root,0x0all/ROOT,agarciamontoro/root,satyarth934/root,arch1tect0r/root,ffurano/root5,esakellari/root,ffurano/root5,davidlt/root,buuck/root,veprbl/root,sbinet/cxx-root,kirbyherm/root-r-tools,buuck/root,ffurano/root5,tc3t/qoot,buuck/root,nilqed/root,CristinaCristescu/root,perovic/root,esakellari/root,georgtroska/root,BerserkerTroll/root,root-mirror/root,omazapa/root-old,davidlt/root,pspe/root,perovic/root,Dr15Jones/root,omazapa/root,0x0all/ROOT,simonpf/root,Y--/root,buuck/root,buuck/root,satyarth934/root,omazapa/root,bbockelm/root,mattkretz/root,thomaskeck/root,omazapa/root,abhinavmoudgil95/root,omazapa/root,tc3t/qoot,veprbl/root,omazapa/root-old,kirbyherm/root-r-tools,smarinac/root,beniz/root,simonpf/root,omazapa/root,davidlt/root,krafczyk/root,lgiommi/root,veprbl/root,zzxuanyuan/root,satyarth934/root,esakellari/my_root_for_test,lgiommi/root,davidlt/root,mkret2/root,sawenzel/root,omazapa/root,0x0all/ROOT,Y--/root,zzxuanyuan/root-compressor-dummy,thomaskeck/root,veprbl/root,nilqed/root,gbitzes/root,Y--/root,olifre/root,gbitzes/root,BerserkerTroll/root,root-mirror/root,0x0all/ROOT,bbockelm/root,kirbyherm/root-r-tools,omazapa/root,Dr15Jones/root,smarinac/root,mattkretz/root,arch1tect0r/root,krafczyk/root,olifre/root,sawenzel/root,nilqed/root,lgiommi/root,esakellari/root,arch1tect0r/root,satyarth934/root,olifre/root,dfunke/root,dfunke/root,strykejern/TTreeReader,strykejern/TTreeReader,jrtomps/root,zzxuanyuan/root-compressor-dummy,arch1tect0r/root,BerserkerTroll/root,vukasinmilosevic/root,olifre/root,CristinaCristescu/root,tc3t/qoot,alexschlueter/cern-root,bbockelm/root,sirinath/root,dfunke/root,Y--/root,BerserkerTroll/root,zzxuanyuan/root,veprbl/root,beniz/root,beniz/root,simonpf/root,zzxuanyuan/root-compressor-dummy,tc3t/qoot,gbitzes/root,esakellari/my_root_for_test,mkret2/root,abhinavmoudgil95/root,esakellari/my_root_for_test,agarciamontoro/root,tc3t/qoot,pspe/root,omazapa/root-old,sawenzel/root,gbitzes/root,omazapa/root-old,zzxuanyuan/root,nilqed/root,sbinet/cxx-root,Dr15Jones/root,arch1tect0r/root,vukasinmilosevic/root,cxx-hep/root-cern,arch1tect0r/root,perovic/root,krafczyk/root,jrtomps/root,evgeny-boger/root,perovic/root,kirbyherm/root-r-tools,abhinavmoudgil95/root,pspe/root,cxx-hep/root-cern,karies/root,satyarth934/root,bbockelm/root,0x0all/ROOT,sbinet/cxx-root,root-mirror/root,mhuwiler/rootauto,satyarth934/root,omazapa/root,beniz/root,sawenzel/root,vukasinmilosevic/root,evgeny-boger/root,veprbl/root,dfunke/root,mhuwiler/rootauto,evgeny-boger/root,Duraznos/root,jrtomps/root,dfunke/root,cxx-hep/root-cern,Duraznos/root,dfunke/root,perovic/root,mkret2/root,omazapa/root-old,bbockelm/root,sirinath/root,zzxuanyuan/root,olifre/root,beniz/root,root-mirror/root,mhuwiler/rootauto,perovic/root,nilqed/root,omazapa/root,Duraznos/root,alexschlueter/cern-root,ffurano/root5,jrtomps/root,strykejern/TTreeReader,olifre/root,arch1tect0r/root,veprbl/root,0x0all/ROOT,mkret2/root,kirbyherm/root-r-tools,veprbl/root,cxx-hep/root-cern,buuck/root,esakellari/root,0x0all/ROOT,simonpf/root,BerserkerTroll/root,gganis/root,nilqed/root,bbockelm/root,smarinac/root,agarciamontoro/root,sirinath/root,sawenzel/root,abhinavmoudgil95/root,thomaskeck/root,kirbyherm/root-r-tools,Duraznos/root,esakellari/root,arch1tect0r/root,mattkretz/root,karies/root,thomaskeck/root,esakellari/root,CristinaCristescu/root,davidlt/root,pspe/root,mattkretz/root,mkret2/root,vukasinmilosevic/root,olifre/root,gbitzes/root,thomaskeck/root,sbinet/cxx-root,agarciamontoro/root,dfunke/root,smarinac/root,lgiommi/root,jrtomps/root,omazapa/root-old,jrtomps/root,thomaskeck/root,pspe/root,gganis/root,simonpf/root,georgtroska/root,CristinaCristescu/root,zzxuanyuan/root-compressor-dummy,vukasinmilosevic/root,krafczyk/root,CristinaCristescu/root,Duraznos/root,esakellari/root,gganis/root,bbockelm/root,zzxuanyuan/root-compressor-dummy,sawenzel/root,mattkretz/root,beniz/root,zzxuanyuan/root,tc3t/qoot,beniz/root,evgeny-boger/root,krafczyk/root,arch1tect0r/root,bbockelm/root,abhinavmoudgil95/root,zzxuanyuan/root,smarinac/root,georgtroska/root,agarciamontoro/root,karies/root,abhinavmoudgil95/root,mkret2/root,abhinavmoudgil95/root,Duraznos/root,mhuwiler/rootauto,simonpf/root,root-mirror/root,alexschlueter/cern-root,Duraznos/root,beniz/root,thomaskeck/root,smarinac/root,perovic/root,lgiommi/root,strykejern/TTreeReader,krafczyk/root,buuck/root,satyarth934/root,root-mirror/root,arch1tect0r/root,buuck/root,alexschlueter/cern-root,Y--/root,Y--/root,ffurano/root5,agarciamontoro/root,mattkretz/root,mkret2/root,BerserkerTroll/root,vukasinmilosevic/root,dfunke/root,lgiommi/root,alexschlueter/cern-root,dfunke/root,omazapa/root-old,sirinath/root,sawenzel/root,kirbyherm/root-r-tools,olifre/root,vukasinmilosevic/root,abhinavmoudgil95/root,CristinaCristescu/root,vukasinmilosevic/root,root-mirror/root,pspe/root,abhinavmoudgil95/root,esakellari/my_root_for_test,zzxuanyuan/root,mattkretz/root,Duraznos/root,zzxuanyuan/root-compressor-dummy,mkret2/root,sirinath/root,zzxuanyuan/root,gbitzes/root,nilqed/root,vukasinmilosevic/root,evgeny-boger/root,zzxuanyuan/root-compressor-dummy,Duraznos/root,BerserkerTroll/root,lgiommi/root,pspe/root,sbinet/cxx-root,krafczyk/root,gbitzes/root,lgiommi/root,BerserkerTroll/root,root-mirror/root,gbitzes/root,karies/root,pspe/root,buuck/root,0x0all/ROOT,zzxuanyuan/root-compressor-dummy,karies/root,omazapa/root-old,mattkretz/root,evgeny-boger/root