TRefTable Class Reference

#include <TRefTable.h>

Inheritance diagram for TRefTable:

TObject TObject List of all members.

Public Types

enum  
enum  

Public Member Functions

 TRefTable ()
 TRefTable (TObject *owner, Int_t size)
virtual ~TRefTable ()
virtual Int_t Add (Int_t uid, TProcessID *context=0)
virtual void Clear (Option_t *="")
virtual Int_t Expand (Int_t pid, Int_t newsize)
virtual void FillBuffer (TBuffer &b)
Int_t GetNumPIDs () const
Int_t GetSize (Int_t pid) const
Int_t GetN (Int_t pid) const
TObjectGetOwner () const
TObjectGetParent (Int_t uid, TProcessID *context=0) const
TObjArrayGetParents () const
UInt_t GetUID () const
TProcessIDGetUIDContext () const
virtual Bool_t Notify ()
virtual void ReadBuffer (TBuffer &b)
virtual void Reset (Option_t *="")
virtual Int_t SetParent (const TObject *parent, Int_t branchID)
virtual void SetUID (UInt_t uid, TProcessID *context=0)
 TRefTable ()
 TRefTable (TObject *owner, Int_t size)
virtual ~TRefTable ()
virtual Int_t Add (Int_t uid, TProcessID *context=0)
virtual void Clear (Option_t *="")
virtual Int_t Expand (Int_t pid, Int_t newsize)
virtual void FillBuffer (TBuffer &b)
Int_t GetNumPIDs () const
Int_t GetSize (Int_t pid) const
Int_t GetN (Int_t pid) const
TObjectGetOwner () const
TObjectGetParent (Int_t uid, TProcessID *context=0) const
TObjArrayGetParents () const
UInt_t GetUID () const
TProcessIDGetUIDContext () const
virtual Bool_t Notify ()
virtual void ReadBuffer (TBuffer &b)
virtual void Reset (Option_t *="")
virtual Int_t SetParent (const TObject *parent, Int_t branchID)
virtual void SetUID (UInt_t uid, TProcessID *context=0)

Static Public Member Functions

static TRefTableGetRefTable ()
static void SetRefTable (TRefTable *table)
static TRefTableGetRefTable ()
static void SetRefTable (TRefTable *table)

Protected Member Functions

Int_t AddInternalIdxForPID (TProcessID *procid)
virtual Int_t ExpandForIID (Int_t iid, Int_t newsize)
void ExpandPIDs (Int_t numpids)
Int_t FindPIDGUID (const char *guid) const
Int_t GetInternalIdxForPID (TProcessID *procid) const
Int_t GetInternalIdxForPID (Int_t pid) const
Int_t AddInternalIdxForPID (TProcessID *procid)
virtual Int_t ExpandForIID (Int_t iid, Int_t newsize)
void ExpandPIDs (Int_t numpids)
Int_t FindPIDGUID (const char *guid) const
Int_t GetInternalIdxForPID (TProcessID *procid) const
Int_t GetInternalIdxForPID (Int_t pid) const

Protected Attributes

Int_t fNumPIDs
Int_tfAllocSize
 number of known ProcessIDs
Int_tfN
 [fNumPIDs] allocated size of array fParentIDs for each ProcessID
Int_t ** fParentIDs
 [fNumPIDs] current maximum number of IDs in array fParentIDs for each ProcessID
Int_t fParentID
 [fNumPIDs][fAllocSize] array of Parent IDs
Int_t fDefaultSize
 current parent ID in fParents (latest call to SetParent)
UInt_t fUID
 default size for a new PID array
TProcessIDfUIDContext
 Current uid (set by TRef::GetObject).
Int_t fSize
 TProcessID the current uid is referring to.
TObjArrayfParents
TObjectfOwner
std::vector< std::stringfProcessGUIDs
std::vector< Int_tfMapPIDtoInternal
Int_tfAllocSize
 number of known ProcessIDs
Int_tfN
 [fNumPIDs] allocated size of array fParentIDs for each ProcessID
Int_t ** fParentIDs
 [fNumPIDs] current maximum number of IDs in array fParentIDs for each ProcessID
TProcessIDfUIDContext
 Current uid (set by TRef::GetObject).
TObjArrayfParents
TObjectfOwner
std::vector< std::stringfProcessGUIDs
std::vector< Int_tfMapPIDtoInternal

Static Protected Attributes

static TRefTablefgRefTable
 cache of pid to index in fProcessGUIDs
static TRefTablefgRefTable
 cache of pid to index in fProcessGUIDs

Detailed Description

Definition at line 37 of file TRefTable.h.


Member Enumeration Documentation

anonymous enum

Definition at line 64 of file TRefTable.h.

anonymous enum

Definition at line 64 of file TRefTable.h.


Constructor & Destructor Documentation

TRefTable::TRefTable (  ) 

TRefTable::TRefTable ( TObject owner,
Int_t  size 
)

Definition at line 59 of file TRefTable.cxx.

References fgRefTable.

TRefTable::~TRefTable (  )  [virtual]

Definition at line 69 of file TRefTable.cxx.

References fAllocSize, fgRefTable, fN, fNumPIDs, fParentIDs, and fParents.

TRefTable::TRefTable (  ) 

TRefTable::TRefTable ( TObject owner,
Int_t  size 
)

virtual TRefTable::~TRefTable (  )  [virtual]


Member Function Documentation

Int_t TRefTable::AddInternalIdxForPID ( TProcessID procid  )  [protected]

Definition at line 117 of file TRefTable.cxx.

References ExpandPIDs(), FindPIDGUID(), fMapPIDtoInternal, fProcessGUIDs, TProcessID::GetNProcessIDs(), TProcessID::GetSessionProcessID(), TNamed::GetTitle(), TObject::GetUniqueID(), and size_t.

Referenced by GetInternalIdxForPID().

Int_t TRefTable::ExpandForIID ( Int_t  iid,
Int_t  newsize 
) [protected, virtual]

Definition at line 165 of file TRefTable.cxx.

References fAllocSize, and fParentIDs.

Referenced by Add(), Expand(), and ReadBuffer().

void TRefTable::ExpandPIDs ( Int_t  numpids  )  [protected]

Definition at line 191 of file TRefTable.cxx.

References fAllocSize, fN, fNumPIDs, and fParentIDs.

Referenced by AddInternalIdxForPID(), and ReadBuffer().

Int_t TRefTable::FindPIDGUID ( const char *  guid  )  const [protected]

Definition at line 236 of file TRefTable.cxx.

References fProcessGUIDs.

Referenced by AddInternalIdxForPID().

Int_t TRefTable::GetInternalIdxForPID ( TProcessID procid  )  const [protected]

Definition at line 264 of file TRefTable.cxx.

References AddInternalIdxForPID().

Referenced by Add(), Expand(), GetInternalIdxForPID(), GetN(), GetParent(), GetSize(), and ReadBuffer().

Int_t TRefTable::GetInternalIdxForPID ( Int_t  pid  )  const [protected]

Definition at line 273 of file TRefTable.cxx.

References GetInternalIdxForPID(), and TProcessID::GetProcessID().

Int_t TRefTable::Add ( Int_t  uid,
TProcessID context = 0 
) [virtual]

Definition at line 84 of file TRefTable.cxx.

References TObject::Error(), ExpandForIID(), fAllocSize, fDefaultSize, fN, fParentID, fParentIDs, GetInternalIdxForPID(), and TProcessID::GetSessionProcessID().

void TRefTable::Clear ( Option_t = ""  )  [virtual]

Reimplemented from TObject.

Definition at line 143 of file TRefTable.cxx.

References fN, fNumPIDs, fParentID, and fParentIDs.

Referenced by TBranchRef::Clear(), and Reset().

Int_t TRefTable::Expand ( Int_t  pid,
Int_t  newsize 
) [virtual]

Definition at line 155 of file TRefTable.cxx.

References ExpandForIID(), and GetInternalIdxForPID().

void TRefTable::FillBuffer ( TBuffer b  )  [virtual]

Definition at line 222 of file TRefTable.cxx.

References b, fN, fNumPIDs, and fParentIDs.

Referenced by TBranchRef::FillLeaves().

TRefTable * TRefTable::GetRefTable (  )  [static]

Definition at line 283 of file TRefTable.cxx.

References fgRefTable.

Referenced by G__G__Cont_88_0_13(), G__setup_memfuncTRefTable(), TRefArray::GetFromTable(), TRef::GetObject(), TRefProxy::GetObject(), and TStreamerInfo::WriteBufferAux().

Int_t TRefTable::GetNumPIDs (  )  const [inline]

Definition at line 76 of file TRefTable.h.

References fNumPIDs.

Int_t TRefTable::GetSize ( Int_t  pid  )  const [inline]

Definition at line 77 of file TRefTable.h.

References fAllocSize, and GetInternalIdxForPID().

Int_t TRefTable::GetN ( Int_t  pid  )  const [inline]

Definition at line 78 of file TRefTable.h.

References fN, and GetInternalIdxForPID().

TObject* TRefTable::GetOwner (  )  const [inline]

Definition at line 79 of file TRefTable.h.

References fOwner.

TObject * TRefTable::GetParent ( Int_t  uid,
TProcessID context = 0 
) const

Definition at line 246 of file TRefTable.cxx.

References fN, fParentIDs, fParents, TObjArray::GetEntriesFast(), GetInternalIdxForPID(), TProcessID::GetSessionProcessID(), and TObjArray::UncheckedAt().

Referenced by TBranchRef::Notify().

TObjArray* TRefTable::GetParents (  )  const [inline]

Definition at line 81 of file TRefTable.h.

References fParents.

UInt_t TRefTable::GetUID (  )  const [inline]

Definition at line 82 of file TRefTable.h.

References fUID.

Referenced by TBranchRef::Notify().

TProcessID* TRefTable::GetUIDContext (  )  const [inline]

Definition at line 83 of file TRefTable.h.

References fUIDContext.

Referenced by TBranchRef::Notify().

Bool_t TRefTable::Notify (  )  [virtual]

Reimplemented from TObject.

Definition at line 291 of file TRefTable.cxx.

References fOwner, and TObject::Notify().

void TRefTable::ReadBuffer ( TBuffer b  )  [virtual]

Definition at line 303 of file TRefTable.cxx.

References b, ExpandForIID(), ExpandPIDs(), fAllocSize, fN, fParentIDs, fProcessGUIDs, GetInternalIdxForPID(), and TNamed::GetTitle().

Referenced by TBranchRef::ReadLeavesImpl().

void TRefTable::Reset ( Option_t = ""  )  [virtual]

Definition at line 341 of file TRefTable.cxx.

References TObjArray::Clear(), Clear(), and fParents.

Referenced by TBranchRef::Reset().

Int_t TRefTable::SetParent ( const TObject parent,
Int_t  branchID 
) [virtual]

Definition at line 349 of file TRefTable.cxx.

References TObjArray::AddAtAndExpand(), fParentID, fParents, TObjArray::GetEntriesFast(), and TObjArray::IndexOf().

Referenced by TBranchRef::SetParent().

void TRefTable::SetRefTable ( TRefTable table  )  [static]

Definition at line 378 of file TRefTable.cxx.

References fgRefTable.

Referenced by G__G__Cont_88_0_26(), G__setup_memfuncTRefTable(), and TBranchRef::SetParent().

virtual void TRefTable::SetUID ( UInt_t  uid,
TProcessID context = 0 
) [inline, virtual]

Definition at line 89 of file TRefTable.h.

References fUID, and fUIDContext.

Int_t TRefTable::AddInternalIdxForPID ( TProcessID procid  )  [protected]

virtual Int_t TRefTable::ExpandForIID ( Int_t  iid,
Int_t  newsize 
) [protected, virtual]

void TRefTable::ExpandPIDs ( Int_t  numpids  )  [protected]

Int_t TRefTable::FindPIDGUID ( const char *  guid  )  const [protected]

Int_t TRefTable::GetInternalIdxForPID ( TProcessID procid  )  const [protected]

Int_t TRefTable::GetInternalIdxForPID ( Int_t  pid  )  const [protected]

virtual Int_t TRefTable::Add ( Int_t  uid,
TProcessID context = 0 
) [virtual]

virtual void TRefTable::Clear ( Option_t = ""  )  [virtual]

Reimplemented from TObject.

virtual Int_t TRefTable::Expand ( Int_t  pid,
Int_t  newsize 
) [virtual]

virtual void TRefTable::FillBuffer ( TBuffer b  )  [virtual]

static TRefTable* TRefTable::GetRefTable (  )  [static]

Int_t TRefTable::GetNumPIDs (  )  const [inline]

Definition at line 76 of file TRefTable.h.

References fNumPIDs.

Int_t TRefTable::GetSize ( Int_t  pid  )  const [inline]

Definition at line 77 of file TRefTable.h.

References fAllocSize, and GetInternalIdxForPID().

Int_t TRefTable::GetN ( Int_t  pid  )  const [inline]

Definition at line 78 of file TRefTable.h.

References fN, and GetInternalIdxForPID().

TObject* TRefTable::GetOwner (  )  const [inline]

Definition at line 79 of file TRefTable.h.

References fOwner.

TObject* TRefTable::GetParent ( Int_t  uid,
TProcessID context = 0 
) const

TObjArray* TRefTable::GetParents (  )  const [inline]

Definition at line 81 of file TRefTable.h.

References fParents.

UInt_t TRefTable::GetUID (  )  const [inline]

Definition at line 82 of file TRefTable.h.

References fUID.

TProcessID* TRefTable::GetUIDContext (  )  const [inline]

Definition at line 83 of file TRefTable.h.

References fUIDContext.

virtual Bool_t TRefTable::Notify (  )  [virtual]

Reimplemented from TObject.

virtual void TRefTable::ReadBuffer ( TBuffer b  )  [virtual]

virtual void TRefTable::Reset ( Option_t = ""  )  [virtual]

virtual Int_t TRefTable::SetParent ( const TObject parent,
Int_t  branchID 
) [virtual]

static void TRefTable::SetRefTable ( TRefTable table  )  [static]

virtual void TRefTable::SetUID ( UInt_t  uid,
TProcessID context = 0 
) [inline, virtual]

Definition at line 89 of file TRefTable.h.

References fUID, and fUIDContext.


Member Data Documentation

Int_t TRefTable::fNumPIDs [protected]

Definition at line 40 of file TRefTable.h.

Referenced by Clear(), ExpandPIDs(), FillBuffer(), GetNumPIDs(), and ~TRefTable().

Int_t* TRefTable::fAllocSize [protected]

number of known ProcessIDs

Definition at line 41 of file TRefTable.h.

Referenced by Add(), ExpandForIID(), ExpandPIDs(), GetSize(), ReadBuffer(), and ~TRefTable().

Int_t* TRefTable::fN [protected]

[fNumPIDs] allocated size of array fParentIDs for each ProcessID

Definition at line 42 of file TRefTable.h.

Referenced by Add(), Clear(), ExpandPIDs(), FillBuffer(), GetN(), GetParent(), ReadBuffer(), and ~TRefTable().

Int_t** TRefTable::fParentIDs [protected]

[fNumPIDs] current maximum number of IDs in array fParentIDs for each ProcessID

Definition at line 43 of file TRefTable.h.

Referenced by Add(), Clear(), ExpandForIID(), ExpandPIDs(), FillBuffer(), GetParent(), ReadBuffer(), and ~TRefTable().

Int_t TRefTable::fParentID [protected]

[fNumPIDs][fAllocSize] array of Parent IDs

Definition at line 44 of file TRefTable.h.

Referenced by Add(), Clear(), and SetParent().

Int_t TRefTable::fDefaultSize [protected]

current parent ID in fParents (latest call to SetParent)

Definition at line 45 of file TRefTable.h.

Referenced by Add().

UInt_t TRefTable::fUID [protected]

default size for a new PID array

Definition at line 46 of file TRefTable.h.

Referenced by GetUID(), and SetUID().

TProcessID* TRefTable::fUIDContext [protected]

Current uid (set by TRef::GetObject).

Definition at line 47 of file TRefTable.h.

Referenced by GetUIDContext(), and SetUID().

Int_t TRefTable::fSize [protected]

TProcessID the current uid is referring to.

Definition at line 48 of file TRefTable.h.

TObjArray* TRefTable::fParents [protected]

Definition at line 49 of file TRefTable.h.

Referenced by GetParent(), GetParents(), Reset(), SetParent(), and ~TRefTable().

TObject* TRefTable::fOwner [protected]

Definition at line 50 of file TRefTable.h.

Referenced by GetOwner(), and Notify().

std::vector<std::string> TRefTable::fProcessGUIDs [protected]

Definition at line 51 of file TRefTable.h.

Referenced by AddInternalIdxForPID(), FindPIDGUID(), and ReadBuffer().

std::vector<Int_t> TRefTable::fMapPIDtoInternal [protected]

Definition at line 52 of file TRefTable.h.

Referenced by AddInternalIdxForPID().

TRefTable * TRefTable::fgRefTable [static, protected]

cache of pid to index in fProcessGUIDs

Definition at line 53 of file TRefTable.h.

Referenced by GetRefTable(), SetRefTable(), TRefTable(), and ~TRefTable().

Int_t* TRefTable::fAllocSize [protected]

number of known ProcessIDs

Definition at line 41 of file TRefTable.h.

Int_t* TRefTable::fN [protected]

[fNumPIDs] allocated size of array fParentIDs for each ProcessID

Definition at line 42 of file TRefTable.h.

Int_t** TRefTable::fParentIDs [protected]

[fNumPIDs] current maximum number of IDs in array fParentIDs for each ProcessID

Definition at line 43 of file TRefTable.h.

TProcessID* TRefTable::fUIDContext [protected]

Current uid (set by TRef::GetObject).

Definition at line 47 of file TRefTable.h.

TObjArray* TRefTable::fParents [protected]

Definition at line 49 of file TRefTable.h.

TObject* TRefTable::fOwner [protected]

Definition at line 50 of file TRefTable.h.

std::vector<std::string> TRefTable::fProcessGUIDs [protected]

Definition at line 51 of file TRefTable.h.

std::vector<Int_t> TRefTable::fMapPIDtoInternal [protected]

Definition at line 52 of file TRefTable.h.

TRefTable* TRefTable::fgRefTable [static, protected]

cache of pid to index in fProcessGUIDs

Definition at line 53 of file TRefTable.h.


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