35 while ((
ob = next())) {
36 if (
ob->IsEqual(obj))
return idx;
57 if (!
a && !
b)
return 0;
77 while (last - first > 1) {
99 if (
j - first < last - (
j + 1)) {
125 static int depth = 0;
129 while (last - first > 1) {
138 a[i] =
a[
j];
for(k=0;k<
nBs;k++)
b[k][i] =
b[k][
j];
146 a[first] =
a[
j];
for(k=0;k<
nBs;k++)
b[k][first] =
b[k][
j];
148 if (
j - first < last - (
j + 1)) {
188 Warning(
"Merge",
"list is empty - nothing to merge");
191 if (list->IsEmpty()) {
192 Warning(
"Merge",
"input list is empty - nothing to merge with");
212 callEnv.InitWithPrototype(
object->IsA(),
"Merge",
"TCollection*");
227 Error(
"Merge",
"some objects in the input list are not collections - merging aborted");
239 Warning(
"Merge",
"object of type %s (position %d in list) not found in list %d. Continuing...",
253 Error(
"Merge",
"object of type %s at index %d not matching object of type %s in input list",
269 Warning(
"Merge",
"temp list for non mergeable objects not created!");
long Longptr_t
Integer large enough to hold a pointer (platform-dependent)
R__EXTERN TVirtualMutex * gCollectionMutex
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
#define R__LOCKGUARD2(mutex)
void * New(ENewType defConstructor=kClassNew, Bool_t quiet=kFALSE) const
Return a pointer to a newly allocated object of this class.
Collection abstract base class.
virtual Bool_t IsEmpty() const
Method or function calling interface.
Mother of all ROOT objects.
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
Sequenceable collection abstract base class.
virtual Int_t IndexOf(const TObject *obj) const
Return index of object in collection.
TClass * IsA() const override
virtual TObject * Last() const =0
static void QSort(TObject **a, Int_t first, Int_t last)
Sort array of TObject pointers using a quicksort algorithm.
Long64_t Merge(TCollection *list)
Merge this collection with all collections coming in the input list.
virtual Int_t GetLast() const
Returns index of last object in collection.
static Int_t ObjCompare(TObject *a, TObject *b)
Compare to objects in the collection. Use member Compare() of object a.
void Add(TObject *obj) override