KaliVeda
Toolkit for HIC analysis
Loading...
Searching...
No Matches
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)
 
virtual ~KVRList ()
 
virtual void Copy (TObject &obj) const
 
virtual void Execute (const char *method, const char *params, Int_t *error=0)
 
virtual void Execute (TMethod *m, TObjArray *o, Int_t *i)
 
virtual TObjectFindObject (const char *obj) const
 
virtual KVBaseFindObject (const Char_t *name, const Char_t *type) const
 
virtual TObjectFindObject (const TObject *obj) const
 
virtual KVBaseFindObject (KVBase *obj) const
 
virtual KVBaseFindObjectByLabel (const Char_t *) const
 
virtual KVBaseFindObjectByName (const Char_t *) const
 Look for object with name "name" in the list.
 
virtual KVBaseFindObjectByType (const Char_t *) const
 
virtual Int_t GetSize () const
 
virtual void Print (Option_t *opt="") const
 Print description of all objects in list.
 
virtual void Print (Option_t *option, const char *wildcard, Int_t recurse=1) const
 
virtual void Print (Option_t *option, Int_t recurse) const
 
virtual void Print (Option_t *option, TPRegexp &regexp, Int_t recurse=1) const
 
- 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
 
TObjectAfter (const TObject *obj) const override
 
TObjectAt (Int_t idx) const override
 
TObjectBefore (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)
 
TObjectFirst () const override
 
Int_t GetEntries () const override
 
Int_t GetEntriesFast () const
 
Int_t GetLast () const override
 
TObject ** GetObjectRef (const TObject *obj) const override
 
TProcessIDGetPID () const
 
UInt_t GetUID (Int_t at) const
 
Int_t IndexOf (const TObject *obj) const override
 
TClassIsA () const override
 
Bool_t IsEmpty () const override
 
TObjectLast () const override
 
Int_t LowerBound () const
 
TIteratorMakeIterator (Bool_t dir=kIterForward) const override
 
TRefArrayoperator= (const TRefArray &a)
 
virtual TObjectoperator[] (Int_t i) const
 
TObjectRemove (TObject *obj) override
 
TObjectRemoveAt (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
 
TClassIsA () 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
 
TObjectClone (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
 
TObjectFindObject (const char *name) const override
 
TObjectFindObject (const TObject *obj) const override
 
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 TIteratorMakeReverseIterator () const
 
Bool_t Notify () override
 
TObjectoperator() (const char *name) const
 
void Paint (Option_t *option="") override
 
void Print (Option_t *option="") const 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 TObjectDrawClone (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_tGetDrawOption () const
 
virtual const char * GetIconName () const
 
virtual char * GetObjectInfo (Int_t px, Int_t py) const
 
virtual Option_tGetOption () 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)
 
voidoperator new (size_t sz)
 
voidoperator new (size_t sz, void *vp)
 
voidoperator new[] (size_t sz)
 
voidoperator new[] (size_t sz, void *vp)
 
TObjectoperator= (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 TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
- Static Public Member Functions inherited from TSeqCollection
static TClassClass ()
 
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 TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
static void EmptyGarbageCollection ()
 
static void GarbageCollect (TObject *obj)
 
static TCollectionGetCurrentCollection ()
 
static void StartGarbageCollection ()
 
- Static Public Member Functions inherited from TObject
static TClassClass ()
 
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
 
TObjectGetFromTable (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
 
TProcessIDfPID
 
UInt_tfUIDs
 
- 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.

◆ ~KVRList()

virtual KVRList::~KVRList ( )
inlinevirtual

Definition at line 49 of file KVRList.h.

Member Function Documentation

◆ Copy()

void KVRList::Copy ( TObject obj) const
virtual

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 
)
virtual

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]

virtual void KVRList::Execute ( TMethod m,
TObjArray o,
Int_t i 
)
inlinevirtual

Reimplemented from TObject.

Definition at line 67 of file KVRList.h.

◆ FindObject() [1/4]

virtual TObject * KVRList::FindObject ( const char *  obj) const
inlinevirtual

Reimplemented from TObject.

Definition at line 60 of file KVRList.h.

◆ FindObject() [2/4]

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

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]

virtual TObject * KVRList::FindObject ( const TObject obj) const
inlinevirtual

Reimplemented from TObject.

Definition at line 56 of file KVRList.h.

◆ FindObject() [4/4]

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

Definition at line 203 of file KVRList.cpp.

◆ FindObjectByLabel()

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

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
virtual

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
virtual

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()

virtual Int_t KVRList::GetSize ( ) const
inlinevirtual

Reimplemented from TCollection.

Definition at line 77 of file KVRList.h.

◆ Print() [1/4]

void KVRList::Print ( Option_t opt = "") const
virtual

Print description of all objects in list.

Reimplemented from TObject.

Definition at line 162 of file KVRList.cpp.

◆ Print() [2/4]

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

Reimplemented from TCollection.

Definition at line 87 of file KVRList.h.

◆ Print() [3/4]

virtual void KVRList::Print ( Option_t option,
Int_t  recurse 
) const
inlinevirtual

Reimplemented from TCollection.

Definition at line 83 of file KVRList.h.

◆ Print() [4/4]

virtual void KVRList::Print ( Option_t option,
TPRegexp regexp,
Int_t  recurse = 1 
) const
inlinevirtual

Reimplemented from TCollection.

Definition at line 91 of file KVRList.h.