TKey Class Reference

#include <TKey.h>

Inheritance diagram for TKey:

TNamed TNamed TObject TObject TObject TObject TBasket TBasket TKeySQL TKeySQL TKeyXML TKeyXML TBasketSQL TBasketSQL TBasketSQL TBasketSQL List of all members.

Public Member Functions

 TKey ()
 TKey (TDirectory *motherDir)
 TKey (const char *name, const char *title, const TClass *cl, Int_t nbytes, TDirectory *motherDir=0)
 TKey (const TString &name, const TString &title, const TClass *cl, Int_t nbytes, TDirectory *motherDir=0)
 TKey (const TObject *obj, const char *name, Int_t bufsize, TDirectory *motherDir=0)
 TKey (const void *obj, const TClass *cl, const char *name, Int_t bufsize, TDirectory *motherDir=0)
 TKey (Long64_t pointer, Int_t nbytes, TDirectory *motherDir=0)
virtual ~TKey ()
virtual void Browse (TBrowser *b)
virtual void Delete (Option_t *option="")
virtual void DeleteBuffer ()
virtual void FillBuffer (char *&buffer)
virtual const char * GetClassName () const
virtual const char * GetIconName () const
virtual const char * GetTitle () const
virtual char * GetBuffer () const
TBufferGetBufferRef () const
Short_t GetCycle () const
const TDatimeGetDatime () const
TFileGetFile () const
Short_t GetKeep () const
Int_t GetKeylen () const
TDirectoryGetMotherDir () const
Int_t GetNbytes () const
Int_t GetObjlen () const
Int_t GetVersion () const
virtual Long64_t GetSeekKey () const
virtual Long64_t GetSeekPdir () const
virtual ULong_t Hash () const
virtual void IncrementPidOffset (UShort_t offset)
Bool_t IsFolder () const
virtual void Keep ()
virtual void ls (Option_t *option="") const
virtual void Print (Option_t *option="") const
virtual Int_t Read (TObject *obj)
virtual TObjectReadObj ()
virtual TObjectReadObjWithBuffer (char *bufferRead)
virtual void * ReadObjectAny (const TClass *expectedClass)
virtual void ReadBuffer (char *&buffer)
void ReadKeyBuffer (char *&buffer)
virtual void ReadFile ()
virtual void SetBuffer ()
virtual void SetParent (const TObject *parent)
void SetMotherDir (TDirectory *dir)
virtual Int_t Sizeof () const
virtual Int_t WriteFile (Int_t cycle=1, TFile *f=0)
 ClassDef (TKey, 4)
 TKey ()
 TKey (TDirectory *motherDir)
 TKey (const char *name, const char *title, const TClass *cl, Int_t nbytes, TDirectory *motherDir=0)
 TKey (const TString &name, const TString &title, const TClass *cl, Int_t nbytes, TDirectory *motherDir=0)
 TKey (const TObject *obj, const char *name, Int_t bufsize, TDirectory *motherDir=0)
 TKey (const void *obj, const TClass *cl, const char *name, Int_t bufsize, TDirectory *motherDir=0)
 TKey (Long64_t pointer, Int_t nbytes, TDirectory *motherDir=0)
virtual ~TKey ()
virtual void Browse (TBrowser *b)
virtual void Delete (Option_t *option="")
virtual void DeleteBuffer ()
virtual void FillBuffer (char *&buffer)
virtual const char * GetClassName () const
virtual const char * GetIconName () const
virtual const char * GetTitle () const
virtual char * GetBuffer () const
TBufferGetBufferRef () const
Short_t GetCycle () const
const TDatimeGetDatime () const
TFileGetFile () const
Short_t GetKeep () const
Int_t GetKeylen () const
TDirectoryGetMotherDir () const
Int_t GetNbytes () const
Int_t GetObjlen () const
Int_t GetVersion () const
virtual Long64_t GetSeekKey () const
virtual Long64_t GetSeekPdir () const
virtual ULong_t Hash () const
virtual void IncrementPidOffset (UShort_t offset)
Bool_t IsFolder () const
virtual void Keep ()
virtual void ls (Option_t *option="") const
virtual void Print (Option_t *option="") const
virtual Int_t Read (TObject *obj)
virtual TObjectReadObj ()
virtual TObjectReadObjWithBuffer (char *bufferRead)
virtual void * ReadObjectAny (const TClass *expectedClass)
virtual void ReadBuffer (char *&buffer)
void ReadKeyBuffer (char *&buffer)
virtual void ReadFile ()
virtual void SetBuffer ()
virtual void SetParent (const TObject *parent)
void SetMotherDir (TDirectory *dir)
virtual Int_t Sizeof () const
virtual Int_t WriteFile (Int_t cycle=1, TFile *f=0)
 ClassDef (TKey, 4)

Protected Member Functions

virtual Int_t Read (const char *name)
 pointer to mother directory
virtual void Create (Int_t nbytes, TFile *f=0)
void Build (TDirectory *motherDir, const char *classname, Long64_t filepos)
virtual void Reset ()
virtual Int_t WriteFileKeepBuffer (TFile *f=0)
virtual Int_t Read (const char *name)
 pointer to mother directory
virtual void Create (Int_t nbytes, TFile *f=0)
void Build (TDirectory *motherDir, const char *classname, Long64_t filepos)
virtual void Reset ()
virtual Int_t WriteFileKeepBuffer (TFile *f=0)

Protected Attributes

Int_t fVersion
Int_t fNbytes
Int_t fObjlen
TDatime fDatime
Short_t fKeylen
Short_t fCycle
Long64_t fSeekKey
Long64_t fSeekPdir
TString fClassName
Int_t fLeft
char * fBuffer
TBufferfBufferRef
UShort_t fPidOffset
TDirectoryfMotherDir
 Offset to be added to the pid index in this key/buffer. This is actually saved in the high bits of fSeekPdir.
char * fBuffer
TBufferfBufferRef
TDirectoryfMotherDir
 Offset to be added to the pid index in this key/buffer. This is actually saved in the high bits of fSeekPdir.

Private Member Functions

 TKey (const TKey &)
TKeyoperator= (const TKey &)
 TKey (const TKey &)
TKeyoperator= (const TKey &)

Detailed Description

Definition at line 39 of file TKey.h.


Constructor & Destructor Documentation

TKey::TKey ( const TKey  )  [private]

TKey::TKey (  ) 

TKey::TKey ( TDirectory motherDir  ) 

Definition at line 97 of file TKey.cxx.

References Build(), fKeylen, keyAbsNumber, TObject::SetUniqueID(), and Sizeof().

TKey::TKey ( const char *  name,
const char *  title,
const TClass cl,
Int_t  nbytes,
TDirectory motherDir = 0 
)

Definition at line 124 of file TKey.cxx.

References Build(), Create(), fKeylen, fObjlen, and Sizeof().

TKey::TKey ( const TString name,
const TString title,
const TClass cl,
Int_t  nbytes,
TDirectory motherDir = 0 
)

Definition at line 140 of file TKey.cxx.

References Build(), Create(), fKeylen, fObjlen, and Sizeof().

TKey::TKey ( const TObject obj,
const char *  name,
Int_t  bufsize,
TDirectory motherDir = 0 
)

Definition at line 156 of file TKey.cxx.

References TDirectory::AppendKey(), Build(), Create(), fBuffer, fBufferRef, fCycle, fKeylen, fMotherDir, fObjlen, TFile::GetCompressionLevel(), GetFile(), i, kMAXBUF, TBuffer::kWrite, TBuffer::Length(), TBuffer::MapObject(), TMath::Max(), R__ASSERT, R__zip(), TBuffer::SetParent(), and TObject::Warning().

TKey::TKey ( const void *  obj,
const TClass cl,
const char *  name,
Int_t  bufsize,
TDirectory motherDir = 0 
)

Definition at line 228 of file TKey.cxx.

References TDirectory::AppendKey(), Build(), Create(), fBuffer, fBufferRef, fCycle, fKeylen, fMotherDir, fObjlen, TClass::GetActualClass(), TClass::GetBaseClassOffset(), TFile::GetCompressionLevel(), GetFile(), TClass::HasDefaultConstructor(), i, kMAXBUF, TBuffer::kWrite, TMath::Max(), R__ASSERT, R__zip(), TClass::Streamer(), and TObject::Warning().

TKey::TKey ( Long64_t  pointer,
Int_t  nbytes,
TDirectory motherDir = 0 
)

Definition at line 109 of file TKey.cxx.

References Build(), fBuffer, fNbytes, fSeekKey, keyAbsNumber, and TObject::SetUniqueID().

TKey::~TKey (  )  [virtual]

Definition at line 445 of file TKey.cxx.

References DeleteBuffer().

TKey::TKey ( const TKey  )  [private]

TKey::TKey (  ) 

TKey::TKey ( TDirectory motherDir  ) 

TKey::TKey ( const char *  name,
const char *  title,
const TClass cl,
Int_t  nbytes,
TDirectory motherDir = 0 
)

TKey::TKey ( const TString name,
const TString title,
const TClass cl,
Int_t  nbytes,
TDirectory motherDir = 0 
)

TKey::TKey ( const TObject obj,
const char *  name,
Int_t  bufsize,
TDirectory motherDir = 0 
)

TKey::TKey ( const void *  obj,
const TClass cl,
const char *  name,
Int_t  bufsize,
TDirectory motherDir = 0 
)

TKey::TKey ( Long64_t  pointer,
Int_t  nbytes,
TDirectory motherDir = 0 
)

virtual TKey::~TKey (  )  [virtual]


Member Function Documentation

TKey& TKey::operator= ( const TKey  )  [private]

virtual Int_t TKey::Read ( const char *  name  )  [inline, protected, virtual]

pointer to mother directory

Reimplemented from TObject.

Definition at line 61 of file TKey.h.

References TObject::Read().

Referenced by TKeyXML::Read(), TKeySQL::Read(), and TDirectoryFile::ReadTObject().

void TKey::Create ( Int_t  nbytes,
TFile f = 0 
) [protected, virtual]

Definition at line 384 of file TKey.cxx.

References buffer, TObject::Error(), fBuffer, fDatime, TList::First(), fKeylen, fLeft, fMotherDir, fNbytes, fSeekKey, fSeekPdir, TFree::GetBestFree(), GetFile(), TFree::GetFirst(), TFree::GetLast(), TNamed::GetName(), TDirectoryFile::GetSeekDir(), TDirectory::GetSeekDir(), GetTitle(), keyAbsNumber, TList::Remove(), TDatime::Set(), TFree::SetFirst(), TObject::SetUniqueID(), and tobuf().

Referenced by TBasket::CopyTo(), TKey(), and TBasket::WriteBuffer().

void TKey::Build ( TDirectory motherDir,
const char *  classname,
Long64_t  filepos 
) [protected]

Definition at line 319 of file TKey.cxx.

References fBuffer, fBufferRef, fClassName, fCycle, fKeylen, fLeft, fMotherDir, fNbytes, fObjlen, fPidOffset, fSeekKey, fSeekPdir, TNamed::fTitle, fVersion, TFile::GetEND(), GetFile(), TFile::kStartBigFile, kTitleMax, TString::Length(), and TString::Resize().

Referenced by TKey().

void TKey::Reset (  )  [protected, virtual]

Definition at line 1176 of file TKey.cxx.

References fBuffer, fCycle, fDatime, fLeft, fNbytes, fObjlen, fPidOffset, fSeekKey, fSeekPdir, keyAbsNumber, and TObject::SetUniqueID().

Referenced by TBasket::Reset().

Int_t TKey::WriteFileKeepBuffer ( TFile f = 0  )  [protected, virtual]

Definition at line 1341 of file TKey.cxx.

References buffer, fBuffer, fLeft, gDebug, GetFile(), TNamed::GetName(), GetTitle(), i, kTRUE, and result().

Referenced by TBasket::CopyTo(), and TBasket::WriteBuffer().

void TKey::Browse ( TBrowser b  )  [virtual]

Reimplemented from TObject.

Definition at line 351 of file TKey.cxx.

References b, TClass::Browse(), xmlio::Class, TObject::Delete(), TList::FindObject(), fMotherDir, TClass::GetClass(), GetClassName(), TDirectory::GetList(), TNamed::GetName(), TClass::InheritsFrom(), kTRUE, and ReadObj().

void TKey::Delete ( Option_t option = ""  )  [virtual]

Reimplemented from TObject.

Definition at line 456 of file TKey.cxx.

References fMotherDir, fNbytes, fSeekKey, GetFile(), TDirectory::GetListOfKeys(), TNamed::GetName(), Long64_t, TFile::MakeFree(), and TList::Remove().

Referenced by TTree::AutoSave(), TTree::Delete(), TDirectoryFile::Delete(), TDirectoryFile::Purge(), TDirectoryFile::WriteObjectAny(), and TDirectoryFile::WriteTObject().

void TKey::DeleteBuffer (  )  [virtual]

Definition at line 470 of file TKey.cxx.

References fBuffer, and fBufferRef.

Referenced by WriteFile(), and ~TKey().

void TKey::FillBuffer ( char *&  buffer  )  [virtual]

Reimplemented from TNamed.

Definition at line 512 of file TKey.cxx.

References fClassName, fCycle, fDatime, TString::FillBuffer(), TDatime::FillBuffer(), fKeylen, TNamed::fName, fNbytes, fObjlen, fPidOffset, fSeekKey, fSeekPdir, TNamed::fTitle, fVersion, kPidOffsetMask, kPidOffsetShift, Long64_t, tobuf(), and version.

Referenced by WriteFile(), and TDirectoryFile::WriteKeys().

virtual const char* TKey::GetClassName (  )  const [inline, virtual]

Definition at line 82 of file TKey.h.

References TString::Data(), and fClassName.

Referenced by Browse(), Compare(), CopyDir(), correlationscatters(), correlationscattersMultiClass(), CorrGui(), TDirectoryFile::Delete(), draw_network(), TDirectoryFile::FindKeyAny(), TDirectoryFile::FindObjectAny(), HistAction::importFromFile(), TFile::Init(), TSQLFile::InitSqlDatabase(), TXMLFile::InitXmlFile(), TKeySQL::IsKeyModified(), TEntryListFromFile::LoadList(), TMVAGlob::NextKey(), TEntryListFromFile::Print(), TDirectoryFile::ReadAll(), TFile::Recover(), variables(), and TSQLFile::WriteKeyData().

const char * TKey::GetIconName (  )  const [virtual]

Reimplemented from TObject.

Definition at line 1376 of file TKey.cxx.

References TString::BeginsWith(), TString::Data(), TNamed::fTitle, and TString::IsNull().

const char * TKey::GetTitle (  )  const [virtual]

Reimplemented from TNamed.

Definition at line 1384 of file TKey.cxx.

References TString::BeginsWith(), TString::Data(), TNamed::fTitle, TString::Index(), TString::IsNull(), and start.

Referenced by Create(), TKeySQL::IsKeyModified(), ls(), Print(), ReadObj(), TKeyXML::ReadObj(), TKeySQL::ReadObj(), ReadObjectAny(), TKeyXML::ReadObjWithBuffer(), TKeySQL::ReadObjWithBuffer(), ReadObjWithBuffer(), TSQLFile::ReadSpecialObject(), TKeyXML::StoreKeyAttributes(), TSQLFile::UpdateKeyData(), WriteFile(), WriteFileKeepBuffer(), and TSQLFile::WriteKeyData().

virtual char* TKey::GetBuffer (  )  const [inline, virtual]

Definition at line 85 of file TKey.h.

References fBuffer, and fKeylen.

Referenced by TFile::Init(), TFile::ReadFree(), TDirectoryFile::ReadKeys(), TDirectoryFile::TDirectoryFile(), TFile::WriteFree(), and TDirectoryFile::WriteKeys().

TBuffer* TKey::GetBufferRef (  )  const [inline]

Definition at line 86 of file TKey.h.

References fBufferRef.

Referenced by TTreeSQL::CheckBasket(), TBranch::Fill(), TBranch::GetEntry(), TBranch::GetEntryExport(), and TBasket::MoveEntries().

Short_t TKey::GetCycle (  )  const

Definition at line 488 of file TKey.cxx.

References fCycle.

Referenced by TDirectoryFile::AppendKey(), TRootIconList::Browse(), TDirectoryFile::Browse(), correlationscatters(), correlationscattersMultiClass(), TDirectoryFile::Delete(), TDirectoryFile::FindKeyAny(), TDirectoryFile::FindObjectAny(), TDirectoryFile::Get(), TDirectoryFile::GetKey(), TDirectoryFile::GetObjectChecked(), TKeySQL::IsKeyModified(), ls(), Print(), TFileIter::PurgeKeys(), TSQLFile::UpdateKeyData(), variables(), and TSQLFile::WriteKeyData().

const TDatime& TKey::GetDatime (  )  const [inline]

Definition at line 88 of file TKey.h.

References fDatime.

Referenced by TKeySQL::IsKeyModified(), TSQLFile::UpdateKeyData(), and TSQLFile::WriteKeyData().

TFile * TKey::GetFile (  )  const

Definition at line 496 of file TKey.cxx.

References fMotherDir, TDirectory::GetFile(), and gFile.

Referenced by Build(), Create(), TKeySQL::Delete(), Delete(), Read(), ReadFile(), TKeySQL::ReadKeyObject(), ReadObj(), ReadObjectAny(), ReadObjWithBuffer(), TKeyXML::StoreKeyAttributes(), TKeySQL::StoreKeyObject(), TKeyXML::StoreObject(), TKey(), TKeyXML::UpdateObject(), WriteFile(), WriteFileKeepBuffer(), TKeyXML::XMLEngine(), and TKeyXML::XmlReadAny().

Short_t TKey::GetKeep (  )  const

Definition at line 504 of file TKey.cxx.

References fCycle.

Referenced by TDirectoryFile::Purge().

Int_t TKey::GetKeylen (  )  const [inline]

Definition at line 91 of file TKey.h.

References fKeylen.

Referenced by TBranch::AddBasket(), TBranch::GetEntry(), TBranch::GetEntryExport(), TFile::Init(), TBasket::MoveEntries(), TTree::Print(), TBasket::Reset(), TDirectoryFile::TDirectoryFile(), and TBranch::WriteBasket().

TDirectory* TKey::GetMotherDir (  )  const [inline]

Definition at line 92 of file TKey.h.

References fMotherDir.

Referenced by TKeySQL::GetDBDirId(), TKeySQL::StoreKeyObject(), and TKeyXML::TKeyXML().

Int_t TKey::GetNbytes (  )  const [inline]

Definition at line 93 of file TKey.h.

References fNbytes.

Referenced by TBranch::AddBasket(), TTree::Delete(), TTree::Print(), TBranch::WriteBasket(), TFile::WriteFree(), TDirectoryFile::WriteKeys(), and TFile::WriteStreamerInfo().

Int_t TKey::GetObjlen (  )  const [inline]

Definition at line 94 of file TKey.h.

References fObjlen.

Referenced by TBranch::AddBasket(), TBasket::Reset(), TBranch::WriteBasket(), TDirectoryFile::WriteObjectAny(), TFile::WriteStreamerInfo(), and TDirectoryFile::WriteTObject().

Int_t TKey::GetVersion (  )  const [inline]

Definition at line 95 of file TKey.h.

References fVersion.

virtual Long64_t TKey::GetSeekKey (  )  const [inline, virtual]

Definition at line 96 of file TKey.h.

References fSeekKey.

Referenced by TBranch::AddBasket(), TBranch::GetBasket(), TFile::Init(), TDirectoryFile::ReadKeys(), TDirectoryFile::TDirectoryFile(), TBranch::WriteBasket(), TFile::WriteFree(), TDirectoryFile::WriteKeys(), TDirectoryFile::WriteObjectAny(), TFile::WriteStreamerInfo(), and TDirectoryFile::WriteTObject().

virtual Long64_t TKey::GetSeekPdir (  )  const [inline, virtual]

Definition at line 97 of file TKey.h.

References fSeekPdir.

Referenced by TDirectoryFile::ReadKeys().

ULong_t TKey::Hash (  )  const [virtual]

Reimplemented from TNamed.

Definition at line 546 of file TKey.cxx.

References TNamed::Hash().

void TKey::IncrementPidOffset ( UShort_t  offset  )  [virtual]

Definition at line 554 of file TKey.cxx.

References fPidOffset, and fVersion.

Referenced by TTreeCloner::WriteBaskets().

Bool_t TKey::IsFolder (  )  const [virtual]

Reimplemented from TObject.

Definition at line 574 of file TKey.cxx.

References xmlio::Class, fClassName, TClass::GetClass(), TClass::GetClassInfo(), TClass::InheritsFrom(), TClass::kDummyNew, kFALSE, and TClass::New().

void TKey::Keep (  )  [virtual]

Definition at line 593 of file TKey.cxx.

References fCycle.

void TKey::ls ( Option_t option = ""  )  const [virtual]

Reimplemented from TNamed.

Definition at line 602 of file TKey.cxx.

References fClassName, GetCycle(), TNamed::GetName(), GetTitle(), and TROOT::IndentLevel().

Referenced by TDirectoryFile::ls().

void TKey::Print ( Option_t option = ""  )  const [virtual]

Reimplemented from TNamed.

Definition at line 611 of file TKey.cxx.

References GetCycle(), TNamed::GetName(), and GetTitle().

Int_t TKey::Read ( TObject obj  )  [virtual]

Definition at line 1039 of file TKey.cxx.

References TBuffer::Buffer(), fBuffer, fBufferRef, fKeylen, fNbytes, fObjlen, fPidOffset, fVersion, GetFile(), TBuffer::kRead, TBuffer::MapObject(), R__unzip(), R__unzip_header(), ReadFile(), TBuffer::SetBufferOffset(), TBuffer::SetParent(), and TBuffer::SetPidOffset().

TObject * TKey::ReadObj (  )  [virtual]

Definition at line 619 of file TKey.cxx.

References TDirectory::Append(), TBuffer::Buffer(), xmlio::Class, TString::Data(), dir(), TObject::Error(), TObject::Fatal(), fBuffer, fBufferRef, fClassName, fKeylen, fMotherDir, fNbytes, fObjlen, fPidOffset, TClass::GetBaseClassOffset(), TClass::GetClass(), TClass::GetDirectoryAutoAdd(), GetFile(), TROOT::GetForceStyle(), TNamed::GetName(), GetTitle(), gROOT, TClass::InheritsFrom(), TBuffer::kRead, TBuffer::MapObject(), TClass::New(), R__unzip(), R__unzip_header(), ReadFile(), ReadObjectAny(), TBuffer::ReadVersion(), TBuffer::SetBufferOffset(), TBuffer::SetParent(), and TBuffer::SetPidOffset().

Referenced by annconvergencetest(), BDTControlPlots(), billr(), BoostControlPlots(), Browse(), compareanapp(), compareClassApp(), CopyDir(), correlationscatters(), correlationscattersMultiClass(), CorrGui(), draw_network(), TDirectoryFile::FindObjectAny(), TDirectoryFile::Get(), TVirtualPacketizer::GetEntries(), TDSet::GetEntries(), TEventIterObj::GetNextEvent(), HistAction::importFromFile(), likelihoodrefs(), TEventIterTree::Load(), TEntryListFromFile::LoadList(), TFileMerger::MergeRecursive(), MergeRootfile(), plot_efficiencies(), TEntryListFromFile::Print(), probas(), TDirectoryFile::ReadAll(), rulevisCorr(), rulevisHists(), th2polyEurope(), th2polyUSA(), and variables().

TObject * TKey::ReadObjWithBuffer ( char *  bufferRead  )  [virtual]

Definition at line 758 of file TKey.cxx.

References TDirectory::Append(), TBuffer::Buffer(), xmlio::Class, TString::Data(), dir(), TObject::Error(), TObject::Fatal(), fBuffer, fBufferRef, fClassName, fKeylen, fMotherDir, fNbytes, fObjlen, fPidOffset, TClass::GetBaseClassOffset(), TClass::GetClass(), TClass::GetDirectoryAutoAdd(), GetFile(), TROOT::GetForceStyle(), TNamed::GetName(), GetTitle(), gROOT, TClass::InheritsFrom(), TBuffer::kRead, TBuffer::MapObject(), TClass::New(), R__unzip(), R__unzip_header(), ReadFile(), ReadObjectAny(), TBuffer::ReadVersion(), TBuffer::SetBufferOffset(), TBuffer::SetParent(), and TBuffer::SetPidOffset().

Referenced by TFile::GetStreamerInfoList().

void * TKey::ReadObjectAny ( const TClass expectedClass  )  [virtual]

Definition at line 883 of file TKey.cxx.

References TDirectory::Append(), TBuffer::Buffer(), xmlio::Class, TString::Data(), TClass::Destructor(), dir(), TObject::Error(), TObject::Fatal(), fBuffer, fBufferRef, fClassName, fKeylen, fMotherDir, fNbytes, fObjlen, fPidOffset, TClass::GetBaseClassOffset(), TClass::GetClass(), TClass::GetClassInfo(), TClass::GetDirectoryAutoAdd(), GetFile(), TROOT::GetForceStyle(), TNamed::GetName(), TClass::GetSchemaRules(), GetTitle(), gROOT, ROOT::TSchemaRuleSet::HasRuleWithSourceClass(), TObject::Info(), TClass::InheritsFrom(), TBuffer::kRead, TBuffer::MapObject(), TClass::New(), R__unzip(), R__unzip_header(), ReadFile(), TBuffer::ReadVersion(), TBuffer::SetBufferOffset(), TBuffer::SetParent(), TBuffer::SetPidOffset(), TClass::Streamer(), and TObject::Warning().

Referenced by TDirectoryFile::GetObjectChecked(), ReadObj(), and ReadObjWithBuffer().

void TKey::ReadBuffer ( char *&  buffer  )  [virtual]

Definition at line 1091 of file TKey.cxx.

References TDirectory::AppendKey(), fSeekPdir, gDirectory, TDirectory::GetSeekDir(), gROOT, TROOT::ReadingObject(), and ReadKeyBuffer().

void TKey::ReadKeyBuffer ( char *&  buffer  ) 

Definition at line 1104 of file TKey.cxx.

References fClassName, fCycle, fDatime, fKeylen, TNamed::fName, fNbytes, fObjlen, fPidOffset, frombuf(), fSeekKey, fSeekPdir, TNamed::fTitle, fVersion, kPidOffsetMask, kPidOffsetShift, Long64_t, TString::ReadBuffer(), TDatime::ReadBuffer(), seekdir, and version.

Referenced by TFile::GetStreamerInfoList(), ReadBuffer(), TFile::ReadFree(), TDirectoryFile::ReadKeys(), and TFile::Recover().

void TKey::ReadFile (  )  [virtual]

Definition at line 1144 of file TKey.cxx.

References fBuffer, fNbytes, fSeekKey, gDebug, GetFile(), and i.

Referenced by Read(), TFile::ReadFree(), TDirectoryFile::ReadKeys(), ReadObj(), ReadObjectAny(), and ReadObjWithBuffer().

virtual void TKey::SetBuffer (  )  [inline, virtual]

Definition at line 111 of file TKey.h.

References fBuffer, and fNbytes.

void TKey::SetParent ( const TObject parent  )  [virtual]

Definition at line 1168 of file TKey.cxx.

References fBufferRef, and TBuffer::SetParent().

Referenced by TBranch::SetFile(), and TBranch::UpdateFile().

void TKey::SetMotherDir ( TDirectory dir  )  [inline]

Definition at line 113 of file TKey.h.

References dir(), and fMotherDir.

Referenced by TDirectoryFile::AppendKey().

Int_t TKey::Sizeof (  )  const [virtual]

Reimplemented from TNamed.

Definition at line 1196 of file TKey.cxx.

References fClassName, fDatime, TNamed::fName, TNamed::fTitle, fVersion, TString::Sizeof(), and TDatime::Sizeof().

Referenced by TKey(), and TDirectoryFile::WriteKeys().

Int_t TKey::WriteFile ( Int_t  cycle = 1,
TFile f = 0 
) [virtual]

Definition at line 1300 of file TKey.cxx.

References buffer, DeleteBuffer(), fBuffer, FillBuffer(), fLeft, gDebug, GetFile(), TNamed::GetName(), GetTitle(), i, kTRUE, and result().

Referenced by TFile::Init(), TDirectoryFile::TDirectoryFile(), TBasket::WriteBuffer(), TFile::WriteFree(), TDirectoryFile::WriteKeys(), TDirectoryFile::WriteObjectAny(), TFile::WriteStreamerInfo(), and TDirectoryFile::WriteTObject().

TKey::ClassDef ( TKey  ,
 
)

TKey& TKey::operator= ( const TKey  )  [private]

virtual Int_t TKey::Read ( const char *  name  )  [inline, protected, virtual]

pointer to mother directory

Reimplemented from TObject.

Definition at line 61 of file TKey.h.

References TObject::Read().

virtual void TKey::Create ( Int_t  nbytes,
TFile f = 0 
) [protected, virtual]

void TKey::Build ( TDirectory motherDir,
const char *  classname,
Long64_t  filepos 
) [protected]

virtual void TKey::Reset (  )  [protected, virtual]

virtual Int_t TKey::WriteFileKeepBuffer ( TFile f = 0  )  [protected, virtual]

virtual void TKey::Browse ( TBrowser b  )  [virtual]

Reimplemented from TObject.

virtual void TKey::Delete ( Option_t option = ""  )  [virtual]

Reimplemented from TObject.

virtual void TKey::DeleteBuffer (  )  [virtual]

virtual void TKey::FillBuffer ( char *&  buffer  )  [virtual]

Reimplemented from TNamed.

virtual const char* TKey::GetClassName (  )  const [inline, virtual]

Definition at line 82 of file TKey.h.

References TString::Data(), and fClassName.

virtual const char* TKey::GetIconName (  )  const [virtual]

Reimplemented from TObject.

virtual const char* TKey::GetTitle (  )  const [virtual]

Reimplemented from TNamed.

virtual char* TKey::GetBuffer (  )  const [inline, virtual]

Definition at line 85 of file TKey.h.

References fBuffer, and fKeylen.

TBuffer* TKey::GetBufferRef (  )  const [inline]

Definition at line 86 of file TKey.h.

References fBufferRef.

Short_t TKey::GetCycle (  )  const

const TDatime& TKey::GetDatime (  )  const [inline]

Definition at line 88 of file TKey.h.

References fDatime.

TFile* TKey::GetFile (  )  const

Short_t TKey::GetKeep (  )  const

Int_t TKey::GetKeylen (  )  const [inline]

Definition at line 91 of file TKey.h.

References fKeylen.

TDirectory* TKey::GetMotherDir (  )  const [inline]

Definition at line 92 of file TKey.h.

References fMotherDir.

Int_t TKey::GetNbytes (  )  const [inline]

Definition at line 93 of file TKey.h.

References fNbytes.

Int_t TKey::GetObjlen (  )  const [inline]

Definition at line 94 of file TKey.h.

References fObjlen.

Int_t TKey::GetVersion (  )  const [inline]

Definition at line 95 of file TKey.h.

References fVersion.

virtual Long64_t TKey::GetSeekKey (  )  const [inline, virtual]

Definition at line 96 of file TKey.h.

References fSeekKey.

virtual Long64_t TKey::GetSeekPdir (  )  const [inline, virtual]

Definition at line 97 of file TKey.h.

References fSeekPdir.

virtual ULong_t TKey::Hash (  )  const [virtual]

Reimplemented from TNamed.

virtual void TKey::IncrementPidOffset ( UShort_t  offset  )  [virtual]

Bool_t TKey::IsFolder (  )  const [virtual]

Reimplemented from TObject.

virtual void TKey::Keep (  )  [virtual]

virtual void TKey::ls ( Option_t option = ""  )  const [virtual]

Reimplemented from TNamed.

virtual void TKey::Print ( Option_t option = ""  )  const [virtual]

Reimplemented from TNamed.

virtual Int_t TKey::Read ( TObject obj  )  [virtual]

virtual TObject* TKey::ReadObj (  )  [virtual]

virtual TObject* TKey::ReadObjWithBuffer ( char *  bufferRead  )  [virtual]

virtual void* TKey::ReadObjectAny ( const TClass expectedClass  )  [virtual]

virtual void TKey::ReadBuffer ( char *&  buffer  )  [virtual]

void TKey::ReadKeyBuffer ( char *&  buffer  ) 

virtual void TKey::ReadFile (  )  [virtual]

virtual void TKey::SetBuffer (  )  [inline, virtual]

Definition at line 111 of file TKey.h.

References fBuffer, and fNbytes.

virtual void TKey::SetParent ( const TObject parent  )  [virtual]

void TKey::SetMotherDir ( TDirectory dir  )  [inline]

Definition at line 113 of file TKey.h.

References dir(), and fMotherDir.

virtual Int_t TKey::Sizeof (  )  const [virtual]

Reimplemented from TNamed.

virtual Int_t TKey::WriteFile ( Int_t  cycle = 1,
TFile f = 0 
) [virtual]

TKey::ClassDef ( TKey  ,
 
)


Member Data Documentation

Int_t TKey::fVersion [protected]

Definition at line 46 of file TKey.h.

Referenced by Build(), FillBuffer(), GetVersion(), IncrementPidOffset(), Read(), ReadKeyBuffer(), Sizeof(), and TBasket::TBasket().

Int_t TKey::fNbytes [protected]

Definition at line 47 of file TKey.h.

Referenced by Build(), TBasket::CopyTo(), Create(), Delete(), FillBuffer(), GetNbytes(), Read(), TBasket::ReadBasketBuffers(), TBasket::ReadBasketBytes(), ReadFile(), ReadKeyBuffer(), ReadObj(), ReadObjectAny(), ReadObjWithBuffer(), Reset(), SetBuffer(), TKey(), and TBasket::WriteBuffer().

Int_t TKey::fObjlen [protected]

Definition at line 48 of file TKey.h.

Referenced by Build(), FillBuffer(), GetObjlen(), Read(), TBasket::ReadBasketBuffers(), TBasket::ReadBasketBytes(), ReadKeyBuffer(), ReadObj(), ReadObjectAny(), ReadObjWithBuffer(), TBasket::Reset(), Reset(), TBasket::TBasket(), TKey(), and TBasket::WriteBuffer().

TDatime TKey::fDatime [protected]

Definition at line 49 of file TKey.h.

Referenced by Create(), FillBuffer(), GetDatime(), ReadKeyBuffer(), Reset(), Sizeof(), TKeyXML::StoreKeyAttributes(), TKeySQL::StoreKeyObject(), TKeySQL::TKeySQL(), and TKeyXML::TKeyXML().

Short_t TKey::fKeylen [protected]

Definition at line 50 of file TKey.h.

Referenced by Build(), TBasket::CopyTo(), Create(), FillBuffer(), GetBuffer(), TBasket::GetEntryPointer(), GetKeylen(), Read(), TBasket::ReadBasketBuffers(), TBasket::ReadBasketBytes(), ReadKeyBuffer(), ReadObj(), ReadObjectAny(), ReadObjWithBuffer(), TBasket::Reset(), TBasket::TBasket(), TKey(), and TBasket::WriteBuffer().

Short_t TKey::fCycle [protected]

Definition at line 51 of file TKey.h.

Referenced by Build(), FillBuffer(), GetCycle(), GetKeep(), Keep(), ReadKeyBuffer(), Reset(), TKeyXML::StoreKeyAttributes(), TKeySQL::StoreKeyObject(), TKey(), TKeySQL::TKeySQL(), TKeyXML::TKeyXML(), and TBasket::WriteBuffer().

Long64_t TKey::fSeekKey [protected]

Definition at line 52 of file TKey.h.

Referenced by Build(), Create(), Delete(), FillBuffer(), GetSeekKey(), ReadFile(), ReadKeyBuffer(), Reset(), and TKey().

Long64_t TKey::fSeekPdir [protected]

Definition at line 53 of file TKey.h.

Referenced by Build(), Create(), FillBuffer(), GetSeekPdir(), ReadBuffer(), ReadKeyBuffer(), and Reset().

TString TKey::fClassName [protected]

Definition at line 54 of file TKey.h.

Referenced by Build(), FillBuffer(), GetClassName(), IsFolder(), ls(), ReadKeyBuffer(), ReadObj(), ReadObjectAny(), ReadObjWithBuffer(), Sizeof(), TKeySQL::StoreKeyObject(), TKeyXML::StoreObject(), TBasket::TBasket(), TKeySQL::TKeySQL(), and TKeyXML::TKeyXML().

Int_t TKey::fLeft [protected]

Definition at line 55 of file TKey.h.

Referenced by Build(), Create(), Reset(), WriteFile(), and WriteFileKeepBuffer().

char* TKey::fBuffer [protected]

Definition at line 56 of file TKey.h.

Referenced by TBasket::AdjustSize(), Build(), TBasket::CopyTo(), Create(), DeleteBuffer(), TBasket::DropBuffers(), GetBuffer(), Read(), TBasket::ReadBasketBuffers(), ReadFile(), ReadObj(), ReadObjectAny(), ReadObjWithBuffer(), TBasket::Reset(), Reset(), SetBuffer(), TKeySQL::SetBuffer(), TKeyXML::SetBuffer(), TBasket::TBasket(), TKey(), TBasket::WriteBuffer(), WriteFile(), WriteFileKeepBuffer(), and TBasket::~TBasket().

TBuffer* TKey::fBufferRef [protected]

Definition at line 57 of file TKey.h.

Referenced by TBasket::AdjustSize(), Build(), TBasket::CopyTo(), DeleteBuffer(), TBasket::DropBuffers(), GetBufferRef(), TBasket::GetEntryPointer(), TBasket::LoadBasketBuffers(), TBasketSQL::PrepareBasket(), Read(), TBasket::ReadBasketBuffers(), ReadObj(), ReadObjectAny(), ReadObjWithBuffer(), TBasket::Reset(), SetParent(), TBasket::SetReadMode(), TBasket::SetWriteMode(), TBasket::TBasket(), TKey(), TBasketSQL::Update(), TBasket::Update(), and TBasket::WriteBuffer().

UShort_t TKey::fPidOffset [protected]

Definition at line 58 of file TKey.h.

Referenced by Build(), FillBuffer(), IncrementPidOffset(), Read(), ReadKeyBuffer(), ReadObj(), ReadObjectAny(), ReadObjWithBuffer(), and Reset().

TDirectory* TKey::fMotherDir [protected]

Offset to be added to the pid index in this key/buffer. This is actually saved in the high bits of fSeekPdir.

Definition at line 59 of file TKey.h.

Referenced by Browse(), Build(), Create(), TKeySQL::Delete(), TKeyXML::Delete(), Delete(), GetFile(), GetMotherDir(), ReadObj(), TKeyXML::ReadObj(), TKeySQL::ReadObj(), ReadObjectAny(), TKeyXML::ReadObjWithBuffer(), TKeySQL::ReadObjWithBuffer(), ReadObjWithBuffer(), SetMotherDir(), TKey(), and TBasket::WriteBuffer().

char* TKey::fBuffer [protected]

Definition at line 56 of file TKey.h.

TBuffer* TKey::fBufferRef [protected]

Definition at line 57 of file TKey.h.

TDirectory* TKey::fMotherDir [protected]

Offset to be added to the pid index in this key/buffer. This is actually saved in the high bits of fSeekPdir.

Definition at line 59 of file TKey.h.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:42:12 2011 for ROOT_528-00b_version by  doxygen 1.5.1