KaliVeda  1.12/06
Heavy-Ion Analysis Toolkit
List of all members | Public Member Functions | List of all members
KVRList Class Reference

Wrapper for TRefArray adding some functionality.

Definition at line 36 of file KVRList.h.

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. More...
 
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. More...
 
- Public Member Functions inherited from TRefArray
 TRefArray (const TRefArray &a)
 
 TRefArray (Int_t s, Int_t lowerBound=0, TProcessID *pid=0)
 
 TRefArray (Int_t s, TProcessID *pid)
 
 TRefArray (TProcessID *pid=0)
 
virtual ~TRefArray ()
 
void Add (TObject *obj)
 
virtual void AddAfter (const TObject *after, TObject *obj)
 
virtual void AddAt (TObject *obj, Int_t idx)
 
virtual void AddAtAndExpand (TObject *obj, Int_t idx)
 
virtual Int_t AddAtFree (TObject *obj)
 
virtual void AddBefore (const TObject *before, TObject *obj)
 
virtual void AddFirst (TObject *obj)
 
virtual void AddLast (TObject *obj)
 
TObjectAfter (const TObject *obj) const
 
TObjectAt (Int_t idx) const
 
TObjectBefore (const TObject *obj) const
 
virtual Int_t BinarySearch (TObject *obj, Int_t upto=kMaxInt)
 
virtual void Clear (Option_t *option="")
 
virtual void Compress ()
 
virtual void Delete (Option_t *option="")
 
virtual void Expand (Int_t newSize)
 
TObjectFirst () const
 
Int_t GetEntries () const
 
Int_t GetEntriesFast () const
 
Int_t GetLast () const
 
TObject ** GetObjectRef (const TObject *obj) const
 
TProcessIDGetPID () const
 
UInt_t GetUID (Int_t at) const
 
Int_t IndexOf (const TObject *obj) const
 
Bool_t IsEmpty () const
 
TObjectLast () const
 
Int_t LowerBound () const
 
TIteratorMakeIterator (Bool_t dir=kIterForward) const
 
TRefArrayoperator= (const TRefArray &a)
 
virtual TObjectoperator[] (Int_t i) const
 
virtual TObjectRemove (TObject *obj)
 
virtual TObjectRemoveAt (Int_t idx)
 
void SetLast (Int_t last)
 
virtual void Sort (Int_t upto=kMaxInt)
 
- Public Member Functions inherited from TSeqCollection
virtual ~TSeqCollection ()
 
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 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)
 
Int_t Capacity () const
 
virtual TObjectClone (const char *newname="") const
 
Int_t Compare (const TObject *obj) const
 
Bool_t Contains (const char *name) const
 
Bool_t Contains (const TObject *obj) const
 
virtual void Draw (Option_t *option="")
 
virtual void Dump () const
 
TIter end () const
 
virtual const char * GetName () const
 
virtual Int_t GrowBy (Int_t delta) const
 
ULong_t Hash () const
 
Bool_t IsArgNull (const char *where, const TObject *obj) const
 
virtual Bool_t IsFolder () const
 
Bool_t IsOwner () const
 
Bool_t IsSortable () const
 
R__ALWAYS_INLINE Bool_t IsUsingRWLock () const
 
virtual void ls (Option_t *option="") const
 
virtual TIteratorMakeReverseIterator () const
 
virtual Bool_t Notify ()
 
TObjectoperator() (const char *name) const
 
virtual void Paint (Option_t *option="")
 
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
 
virtual void RecursiveRemove (TObject *obj)
 
void RemoveAll ()
 
virtual void RemoveAll (TCollection *col)
 
void SetCurrentCollection ()
 
void SetName (const char *name)
 
virtual void SetOwner (Bool_t enable=kTRUE)
 
virtual bool UseRWLock ()
 
virtual Int_t Write (const char *name=0, Int_t option=0, Int_t bufsize=0)
 
virtual Int_t Write (const char *name=0, Int_t option=0, Int_t bufsize=0) const
 
- 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)
 
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)
 
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)
 
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 TSeqCollection
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 void EmptyGarbageCollection ()
 
static void GarbageCollect (TObject *obj)
 
static TCollectionGetCurrentCollection ()
 
static void StartGarbageCollection ()
 
- Static Public Member Functions inherited from TObject
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
 

#include <KVRList.h>

Inheritance diagram for KVRList:
Inheritance graph
[legend]

Constructor & Destructor Documentation

◆ KVRList() [1/3]

KVRList::KVRList ( TProcessID pid = 0)
inline

Definition at line 43 of file KVRList.h.

◆ KVRList() [2/3]

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

Definition at line 44 of file KVRList.h.

◆ KVRList() [3/3]

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

Definition at line 45 of file KVRList.h.

◆ ~ KVRList()

virtual KVRList::~ KVRList ( )
inlinevirtual

Definition at line 48 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 66 of file KVRList.h.

◆ FindObject() [1/4]

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

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
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 TCollection.

Definition at line 55 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 76 of file KVRList.h.

◆ Print()

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

Print description of all objects in list.

Reimplemented from TCollection.

Definition at line 162 of file KVRList.cpp.


The documentation for this class was generated from the following files: