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
 

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
override

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

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

Definition at line 185 of file KVRList.cpp.

◆ Execute() [2/2]

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

Definition at line 66 of file KVRList.h.

◆ FindObject() [1/4]

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

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
inlineoverride

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
inlineoverride

Definition at line 76 of file KVRList.h.

◆ Print() [1/4]

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

Print description of all objects in list.

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
inlineoverride

Definition at line 85 of file KVRList.h.

◆ Print() [3/4]

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

Definition at line 81 of file KVRList.h.

◆ Print() [4/4]

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

Definition at line 89 of file KVRList.h.