KaliVeda
Toolkit for HIC analysis
KVRList Class Reference

Detailed Description

Wrapper for TRefArray adding some functionality.

Definition at line 37 of file KVRList.h.

#include <KVRList.h>

Inheritance diagram for KVRList:

Public Member Functions

 KVRList (Int_t s, TProcessID *pid)
 
 KVRList (Int_t size, Int_t lowerBound=0, TProcessID *pid=0)
 
 KVRList (TProcessID *pid=0)
 
void Copy (TObject &obj) const override
 
virtual void Execute (const char *method, const char *params, Int_t *error=0) override
 
void Execute (TMethod *m, TObjArray *o, Int_t *i) override
 
TObject * FindObject (const char *obj) const override
 
KVBase * FindObject (const Char_t *name, const Char_t *type) const
 
TObject * FindObject (const TObject *obj) const override
 
KVBase * FindObject (KVBase *obj) const
 
KVBase * FindObjectByLabel (const Char_t *) const
 
KVBase * FindObjectByName (const Char_t *) const
 Look for object with name "name" in the list. More...
 
KVBase * FindObjectByType (const Char_t *) const
 
Int_t GetSize () const override
 
void Print (Option_t *opt="") const override
 Print description of all objects in list. More...
 
void Print (Option_t *option, const char *wildcard, Int_t recurse=1) const override
 
void Print (Option_t *option, Int_t recurse) const override
 
void Print (Option_t *option, TPRegexp &regexp, Int_t recurse=1) const override
 
- Public Member Functions inherited from TRefArray
 TRefArray (const TRefArray &a)
 
 TRefArray (Int_t s, Int_t lowerBound=0, TProcessID *pid=nullptr)
 
 TRefArray (Int_t s, TProcessID *pid)
 
 TRefArray (TProcessID *pid=nullptr)
 
virtual ~TRefArray ()
 
void Add (TObject *obj) override
 
void AddAfter (const TObject *after, TObject *obj) override
 
void AddAt (TObject *obj, Int_t idx) override
 
virtual void AddAtAndExpand (TObject *obj, Int_t idx)
 
virtual Int_t AddAtFree (TObject *obj)
 
void AddBefore (const TObject *before, TObject *obj) override
 
void AddFirst (TObject *obj) override
 
void AddLast (TObject *obj) override
 
TObject * After (const TObject *obj) const override
 
TObject * At (Int_t idx) const override
 
TObject * Before (const TObject *obj) const override
 
virtual Int_t BinarySearch (TObject *obj, Int_t upto=kMaxInt)
 
void Clear (Option_t *option="") override
 
virtual void Compress ()
 
void Delete (Option_t *option="") override
 
virtual void Expand (Int_t newSize)
 
TObject * First () const override
 
Int_t GetEntries () const override
 
Int_t GetEntriesFast () const
 
Int_t GetLast () const override
 
TObject ** GetObjectRef (const TObject *obj) const override
 
TProcessID * GetPID () const
 
UInt_t GetUID (Int_t at) const
 
Int_t IndexOf (const TObject *obj) const override
 
TClass * IsA () const override
 
Bool_t IsEmpty () const override
 
TObject * Last () const override
 
Int_t LowerBound () const
 
TIterator * MakeIterator (Bool_t dir=kIterForward) const override
 
TRefArray & operator= (const TRefArray &a)
 
virtual TObject * operator[] (Int_t i) const
 
TObject * Remove (TObject *obj) override
 
TObject * RemoveAt (Int_t idx) override
 
void SetLast (Int_t last)
 
virtual void Sort (Int_t upto=kMaxInt)
 
void Streamer (TBuffer &) override
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
- Public Member Functions inherited from TSeqCollection
virtual ~TSeqCollection ()
 
void Add (TObject *obj) override
 
TClass * IsA () const override
 
virtual Bool_t IsSorted () const
 
Int_t LastIndex () const
 
Long64_t Merge (TCollection *list)
 
virtual void RemoveAfter (TObject *after)
 
virtual void RemoveBefore (TObject *before)
 
virtual void RemoveFirst ()
 
virtual void RemoveLast ()
 
void Streamer (TBuffer &) override
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
void UnSort ()
 
- Public Member Functions inherited from TCollection
virtual ~TCollection ()
 
virtual void AddAll (const TCollection *col)
 
void AddVector (TObject *obj1,...)
 
Bool_t AssertClass (TClass *cl) const
 
TIter begin () const
 
void Browse (TBrowser *b) override
 
Int_t Capacity () const
 
TObject * Clone (const char *newname="") const override
 
Int_t Compare (const TObject *obj) const override
 
Bool_t Contains (const char *name) const
 
Bool_t Contains (const TObject *obj) const
 
void Draw (Option_t *option="") override
 
void Dump () const override
 
TIter end () const
 
const char * GetName () const override
 
virtual Int_t GrowBy (Int_t delta) const
 
ULong_t Hash () const override
 
Bool_t IsArgNull (const char *where, const TObject *obj) const
 
Bool_t IsFolder () const override
 
Bool_t IsOwner () const
 
Bool_t IsSortable () const override
 
R__ALWAYS_INLINE Bool_t IsUsingRWLock () const
 
void ls (Option_t *option="") const override
 
virtual TIterator * MakeReverseIterator () const
 
Bool_t Notify () override
 
TObject * operator() (const char *name) const
 
void Paint (Option_t *option="") override
 
void RecursiveRemove (TObject *obj) override
 
void RemoveAll ()
 
virtual void RemoveAll (TCollection *col)
 
void SetCurrentCollection ()
 
void SetName (const char *name)
 
virtual void SetOwner (Bool_t enable=kTRUE)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
virtual bool UseRWLock (Bool_t enable=true)
 
Int_t Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0) const override
 
Int_t Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0) override
 
- Public Member Functions inherited from TObject
 TObject ()
 
 TObject (const TObject &object)
 
virtual ~TObject ()
 
void AbstractMethod (const char *method) const
 
virtual void AppendPad (Option_t *option="")
 
ULong_t CheckedHash ()
 
virtual const char * ClassName () const
 
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)
 
virtual void DrawClass () const
 
virtual TObject * DrawClone (Option_t *option="") const
 
virtual void Error (const char *method, const char *msgfmt,...) const
 
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
 
virtual void Fatal (const char *method, const char *msgfmt,...) const
 
virtual Option_t * GetDrawOption () const
 
virtual const char * GetIconName () const
 
virtual char * GetObjectInfo (Int_t px, Int_t py) const
 
virtual Option_t * GetOption () const
 
virtual const char * GetTitle () const
 
virtual UInt_t GetUniqueID () const
 
virtual Bool_t HandleTimer (TTimer *timer)
 
Bool_t HasInconsistentHash () const
 
virtual void Info (const char *method, const char *msgfmt,...) const
 
virtual Bool_t InheritsFrom (const char *classname) const
 
virtual Bool_t InheritsFrom (const TClass *cl) const
 
virtual void Inspect () const
 
void InvertBit (UInt_t f)
 
Bool_t IsDestructed () const
 
virtual Bool_t IsEqual (const TObject *obj) const
 
R__ALWAYS_INLINE Bool_t IsOnHeap () const
 
R__ALWAYS_INLINE Bool_t IsZombie () const
 
void MayNotUse (const char *method) const
 
void Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const
 
void operator delete (void *ptr)
 
void operator delete (void *ptr, void *vp)
 
void operator delete[] (void *ptr)
 
void operator delete[] (void *ptr, void *vp)
 
void * operator new (size_t sz)
 
void * operator new (size_t sz, void *vp)
 
void * operator new[] (size_t sz)
 
void * operator new[] (size_t sz, void *vp)
 
TObject & operator= (const TObject &rhs)
 
virtual void Pop ()
 
virtual Int_t Read (const char *name)
 
void ResetBit (UInt_t f)
 
virtual void SaveAs (const char *filename="", Option_t *option="") const
 
virtual void SavePrimitive (std::ostream &out, Option_t *option="")
 
void SetBit (UInt_t f)
 
void SetBit (UInt_t f, Bool_t set)
 
virtual void SetDrawOption (Option_t *option="")
 
virtual void SetUniqueID (UInt_t uid)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
virtual void SysError (const char *method, const char *msgfmt,...) const
 
R__ALWAYS_INLINE Bool_t TestBit (UInt_t f) const
 
Int_t TestBits (UInt_t f) const
 
virtual void UseCurrentStyle ()
 
virtual void Warning (const char *method, const char *msgfmt,...) const
 

Additional Inherited Members

- Public Types inherited from TRefArray
typedef TRefArrayIter Iterator_t
 
- Public Types inherited from TObject
enum  EDeprecatedStatusBits
 
enum  EStatusBits
 
- Static Public Member Functions inherited from TRefArray
static TClass * Class ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
- Static Public Member Functions inherited from TSeqCollection
static TClass * Class ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
static Int_t ObjCompare (TObject *a, TObject *b)
 
static void QSort (TObject **a, Int_t first, Int_t last)
 
static void QSort (TObject **a, Int_t nBs, TObject ***b, Int_t first, Int_t last)
 
static void QSort (TObject **a, TObject **b, Int_t first, Int_t last)
 
- Static Public Member Functions inherited from TCollection
static TClass * Class ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
static void EmptyGarbageCollection ()
 
static void GarbageCollect (TObject *obj)
 
static TCollection * GetCurrentCollection ()
 
static void StartGarbageCollection ()
 
- Static Public Member Functions inherited from TObject
static TClass * Class ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
static Longptr_t GetDtorOnly ()
 
static Bool_t GetObjectStat ()
 
static void SetDtorOnly (void *obj)
 
static void SetObjectStat (Bool_t stat)
 
- Public Attributes inherited from TCollection
 kInitCapacity
 
 kInitHashTableCapacity
 
- Public Attributes inherited from TObject
 kBitMask
 
 kCanDelete
 
 kCannotPick
 
 kHasUUID
 
 kInconsistent
 
 kInvalidObject
 
 kIsOnHeap
 
 kIsReferenced
 
 kMustCleanup
 
 kNoContextMenu
 
 kNotDeleted
 
 kObjInCanvas
 
 kOverwrite
 
 kSingleKey
 
 kWriteDelete
 
 kZombie
 
- Protected Types inherited from TCollection
enum  EStatusBits
 
- Protected Member Functions inherited from TRefArray
Bool_t BoundsOk (const char *where, Int_t at) const
 
Int_t GetAbsLast () const
 
TObject * GetFromTable (Int_t idx) const
 
Bool_t GetObjectUID (Int_t &uid, TObject *obj, const char *methodname)
 
void Init (Int_t s, Int_t lowerBound)
 
Bool_t OutOfBoundsError (const char *where, Int_t i) const
 
- Protected Member Functions inherited from TSeqCollection
 TSeqCollection ()
 
virtual void Changed ()
 
- Protected Member Functions inherited from TCollection
 TCollection ()
 
virtual const char * GetCollectionEntryName (TObject *entry) const
 
virtual void PrintCollectionEntry (TObject *entry, Option_t *option, Int_t recurse) const
 
virtual void PrintCollectionHeader (Option_t *option) const
 
- Protected Member Functions inherited from TObject
virtual void DoError (int level, const char *location, const char *fmt, va_list va) const
 
void MakeZombie ()
 
- Protected Attributes inherited from TRefArray
Int_t fLast
 
Int_t fLowerBound
 
TProcessID * fPID
 
UInt_t * fUIDs
 
- Protected Attributes inherited from TSeqCollection
Bool_t fSorted
 
- Protected Attributes inherited from TCollection
TString fName
 
Int_t fSize
 
 kIsOwner
 
 kUseRWLock
 
- Protected Attributes inherited from TObject
 kOnlyPrepStep
 

Constructor & Destructor Documentation

◆ KVRList() [1/3]

KVRList::KVRList ( TProcessID *  pid = 0)
inline

Definition at line 44 of file KVRList.h.

◆ KVRList() [2/3]

KVRList::KVRList ( Int_t  s,
TProcessID *  pid 
)
inline

Definition at line 45 of file KVRList.h.

◆ KVRList() [3/3]

KVRList::KVRList ( Int_t  size,
Int_t  lowerBound = 0,
TProcessID *  pid = 0 
)
inline

Definition at line 46 of file KVRList.h.

Member Function Documentation

◆ Copy()

void KVRList::Copy ( TObject &  obj) const
overridevirtual

Copy this list to obj As a KVRList is a list of references to objects, here we are simply copying the references, i.e. no new objects are created

Reimplemented from TObject.

Definition at line 139 of file KVRList.cpp.

◆ Execute() [1/2]

void KVRList::Execute ( const char *  method,
const char *  params,
Int_t *  error = 0 
)
overridevirtual

Redefinition of TObject::Execute method. TObject::Execute is called for each object in the list in order, meaning that for each object the method "method" is executed with arguments "params".

Reimplemented from TObject.

Definition at line 185 of file KVRList.cpp.

◆ Execute() [2/2]

void KVRList::Execute ( TMethod *  m,
TObjArray *  o,
Int_t *  i 
)
inlineoverridevirtual

Reimplemented from TObject.

Definition at line 66 of file KVRList.h.

◆ FindObject() [1/4]

TObject* KVRList::FindObject ( const char *  obj) const
inlineoverridevirtual

Reimplemented from TCollection.

Definition at line 59 of file KVRList.h.

◆ FindObject() [2/4]

KVBase * KVRList::FindObject ( const Char_t *  name,
const Char_t *  type 
) const

Find an object in this list using its type and name. Requires a sequential scan till the object has been found. Returns 0 if object with specified name is not found.

Definition at line 106 of file KVRList.cpp.

◆ FindObject() [3/4]

TObject* KVRList::FindObject ( const TObject *  obj) const
inlineoverridevirtual

Reimplemented from TCollection.

Definition at line 55 of file KVRList.h.

◆ FindObject() [4/4]

KVBase * KVRList::FindObject ( KVBase *  obj) const

Definition at line 203 of file KVRList.cpp.

◆ FindObjectByLabel()

KVBase * KVRList::FindObjectByLabel ( const Char_t *  type) const

Find an object in this list using its label. Requires a sequential scan till the object has been found. Returns 0 if object with specified label is not found.

Definition at line 76 of file KVRList.cpp.

◆ FindObjectByName()

KVBase * KVRList::FindObjectByName ( const Char_t *  name) const

Look for object with name "name" in the list.

Definition at line 31 of file KVRList.cpp.

◆ FindObjectByType()

KVBase * KVRList::FindObjectByType ( const Char_t *  type) const

Find an object in this list using its type. Requires a sequential scan till the object has been found. Returns 0 if object with specified name is not found.

Definition at line 46 of file KVRList.cpp.

◆ GetSize()

Int_t KVRList::GetSize ( ) const
inlineoverridevirtual

Reimplemented from TCollection.

Definition at line 76 of file KVRList.h.

◆ Print() [1/4]

void KVRList::Print ( Option_t *  opt = "") const
overridevirtual

Print description of all objects in list.

Reimplemented from TCollection.

Definition at line 162 of file KVRList.cpp.

◆ Print() [2/4]

void KVRList::Print ( Option_t *  option,
const char *  wildcard,
Int_t  recurse = 1 
) const
inlineoverridevirtual

Reimplemented from TCollection.

Definition at line 85 of file KVRList.h.

◆ Print() [3/4]

void KVRList::Print ( Option_t *  option,
Int_t  recurse 
) const
inlineoverridevirtual

Reimplemented from TCollection.

Definition at line 81 of file KVRList.h.

◆ Print() [4/4]

void KVRList::Print ( Option_t *  option,
TPRegexp &  regexp,
Int_t  recurse = 1 
) const
inlineoverridevirtual

Reimplemented from TCollection.

Definition at line 89 of file KVRList.h.