#ifndef _QLIST_
#define _QLIST_
#include <cstdlib>
#include <typeinfo>
#include <new>
#include "TObject.h"
#include "Rtypes.h"
#include <iostream>
#include "debugger.h"
using std::cout;
template <typename U> class QList: public TObject
{
public:
QList():TObject(),fNElements(0),fUArray(NULL),fChild(NULL){PRINTF4(this,"\tQList<",typeid(U).name(),">::QList()\n") }
QList(const QList<U>& newqlist);
QList(const U& newelement):TObject(),fNElements(0),fUArray(NULL),fChild(NULL){PRINTF4(this,"\tQList<",typeid(U).name(),">::QList(const U& newelement)\n") Add(newelement); }
QList(const U* newelements, Int_t nelements):TObject(),fNElements(0),fUArray(NULL),fChild(NULL){PRINTF6(this,"\tQList<",typeid(U).name(),">::QList(const U* newelements, Int_t nelements<",nelements,">)\n") Add(newelements, nelements); }
virtual ~QList(){PRINTF4(this,"\tQList<",typeid(U).name(),">::~QList()\n") Clear();}
void Add(const QList<U>& newqlist, Int_t index=-1);
void Add(const U& newelement,Int_t index=-1);
void Add(const U* newelements, Int_t nelements, Int_t index=-1);
void Set(const QList<U>& newqlist);
void Set(const U& newelement);
void Set(const U* newelements, Int_t nelements);
Int_t Del(const QList<U>& delqlist, Int_t maxmatches=1);
Int_t Del(const U* delus, Int_t nelements=1, Int_t maxmatches=1);
void Del(Int_t index=-1);
const QList<U>& operator=(const QList<U>& newqlist){PRINTF4(this,"\tconst QList<U>& QList<",typeid(U).name(),">::operator=(const QList<U>& newqlist)\n") Set(newqlist); return *this;}
const QList<U>& operator=(const U& newelement){PRINTF4(this,"\tconst QList<U>& QList<",typeid(U).name(),">::operator=(const U& newelement)\n") Set(newelement); return *this;}
operator U*() const;
const QList<U>& operator+=(const QList<U>& newqlist){PRINTF4(this,"\tconst QList<U>& QList<",typeid(U).name(),">::operator+=(const QList<U>& newqlist)\n") Add(newqlist); return *this;}
const QList<U>& operator+=(const U& newu){PRINTF4(this,"\tconst QList<U>& QList<",typeid(U).name(),">::operator+=(const U& newu)\n") Add(newu); return *this;}
const QList<U>& operator-=(const QList<U>& delqlist){PRINTF4(this,"\tconst QList<U>& QList<",typeid(U).name(),">::operator-=(const QList<U>& delqlist)\n") Del(delqlist); return *this;}
const QList<U>& operator-=(const U& delu){PRINTF4(this,"\tconst QList<U>& QList<",typeid(U).name(),">::operator-=(const U& delu)\n") Del(&delu); return *this;}
Int_t Count() const{PRINTF4(this,"\tInt_t& QList<",typeid(U).name(),">::Count()\n") return fNElements;}
QList<Int_t> Find(const QList<U>& qlist,Int_t maxmatches=0) const;
QList<Int_t> Find(const U& u,Int_t maxmatches=0) const;
QList<Int_t> Find(const U* us, Int_t nelements, Int_t maxmatches=0) const;
template<typename V> friend Bool_t operator==(const QList<V>& lhs,const QList<V>& rhs);
template<typename V> friend Bool_t operator!=(const QList<V>& lhs,const QList<V>& rhs);
template<typename V> friend Bool_t operator<=(const QList<V>& lhs,const QList<V>& rhs);
template<typename V> friend Bool_t operator>=(const QList<V>& lhs,const QList<V>& rhs);
template<typename V> friend Bool_t operator<(const QList<V>& lhs,const QList<V>& rhs);
template<typename V> friend Bool_t operator>(const QList<V>& lhs,const QList<V>& rhs);
U& operator[](Int_t index) const;
const QList<U>& operator()(Int_t index1,Int_t index2,Int_t step=1) const;
QList<U>* Clone(const char* newname = "") const{PRINTF4(this,"\tQList<U>* QList<",typeid(U).name(),">::Clone()\n") newname=0; return new QList<U>(*this); }
Int_t RedimList(Int_t newdim,Int_t index=-1);
void Clear(Option_t* option = "")
{
PRINTF6(this,"\tvoid QList<",typeid(U).name(),">::Clear(Option_t* option<",option,">)\n")
option=0;
if(fChild){
delete fChild;
fChild=NULL;
}
fUArray=NULL;
fNElements=0;
}
private:
Int_t fNElements;
U* fUArray;
mutable QList<U>* fChild;
ClassDef(QList,1)
};
#include "debugger.h"
#include "QList_cxx.h"
#endif
ROOT page - Class index - Class Hierarchy - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.