12 #ifndef ROOT_TRefTable
13 #define ROOT_TRefTable
Int_t fParentID
[fNumPIDs][fAllocSize] array of Parent IDs
Int_t GetSize(Int_t pid) const
TObject * GetParent(Int_t uid, TProcessID *context=0) const
Return object corresponding to uid.
TProcessID * GetUIDContext() const
Buffer base class used for serializing objects.
virtual Int_t Add(Int_t uid, TProcessID *context=0)
Add a new uid to the table.
virtual void Clear(Option_t *="")
Clear all entries in the table.
static void SetRefTable(TRefTable *table)
Static function setting the current TRefTable.
void ExpandPIDs(Int_t numpids)
Expand the arrays of managed PIDs.
#define ClassDef(name, id)
Int_t fSize
TProcessID the current uid is referring to.
TObject * GetOwner() const
Int_t * fN
[fNumPIDs] allocated size of array fParentIDs for each ProcessID
A TProcessID identifies a ROOT job in a unique way in time and space.
Int_t AddInternalIdxForPID(TProcessID *procid)
Add the internal index for fProcessIDs, fAllocSize, etc given a PID.
static TRefTable * fgRefTable
cache of pid to index in fProcessGUIDs
virtual ~TRefTable()
Destructor.
virtual void Reset(Option_t *="")
Clear all entries in the table.
virtual void ReadBuffer(TBuffer &b)
Fill buffer b with the fN elements in fParentdIDs.
std::vector< Int_t > fMapPIDtoInternal
virtual Int_t ExpandForIID(Int_t iid, Int_t newsize)
Expand fParentIDs to newsize for internel ProcessID index iid.
std::vector< std::string > fProcessGUIDs
TObjArray * GetParents() const
Int_t * fAllocSize
number of known ProcessIDs
UInt_t fUID
default size for a new PID array
Int_t fDefaultSize
current parent ID in fParents (latest call to SetParent)
Int_t GetN(Int_t pid) const
static TRefTable * GetRefTable()
Static function returning the current TRefTable.
virtual Int_t Expand(Int_t pid, Int_t newsize)
Expand fParentIDs to newsize for ProcessID pid.
virtual Int_t SetParent(const TObject *parent, Int_t branchID)
– Set current parent object, typically a branch of a tree.
A TRefTable maintains the association between a referenced object and the parent object supporting th...
Int_t FindPIDGUID(const char *guid) const
Get fProcessGUIDs' index of the TProcessID with GUID guid.
virtual void FillBuffer(TBuffer &b)
Fill buffer b with the fN elements in fParentdIDs.
Mother of all ROOT objects.
Int_t ** fParentIDs
[fNumPIDs] current maximum number of IDs in array fParentIDs for each ProcessID
TProcessID * fUIDContext
Current uid (set by TRef::GetObject)
virtual void SetUID(UInt_t uid, TProcessID *context=0)
Int_t GetInternalIdxForPID(TProcessID *procid) const
Get the index for fProcessIDs, fAllocSize, etc given a PID.
virtual Bool_t Notify()
This function is called by TRef::Streamer or TStreamerInfo::ReadBuffer when reading a reference...