12 #ifndef ROOT_TRefTable 13 #define ROOT_TRefTable Int_t fParentID
[fNumPIDs][fAllocSize] array of Parent IDs
Int_t GetSize(Int_t pid) const
TObjArray * GetParents() 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.
Int_t GetInternalIdxForPID(TProcessID *procid) const
Get the index for fProcessIDs, fAllocSize, etc given a PID.
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.
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.
Int_t GetN(Int_t pid) const
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
Int_t * fAllocSize
number of known ProcessIDs
TObject * GetOwner() const
UInt_t fUID
default size for a new PID array
Int_t fDefaultSize
current parent ID in fParents (latest call to SetParent)
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...
virtual void FillBuffer(TBuffer &b)
Fill buffer b with the fN elements in fParentdIDs.
TProcessID * GetUIDContext() const
Mother of all ROOT objects.
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t Double_t b
Int_t ** fParentIDs
[fNumPIDs] current maximum number of IDs in array fParentIDs for each ProcessID
TProcessID * fUIDContext
Current uid (set by TRef::GetObject)
Int_t FindPIDGUID(const char *guid) const
Get fProcessGUIDs' index of the TProcessID with GUID guid.
virtual void SetUID(UInt_t uid, TProcessID *context=0)
TRefTable()
Default constructor for I/O.
virtual Bool_t Notify()
This function is called by TRef::Streamer or TStreamerInfo::ReadBuffer when reading a reference...
TObject * GetParent(Int_t uid, TProcessID *context=0) const
Return object corresponding to uid.