#ifndef ROOT_TClonesArray
#define ROOT_TClonesArray
#ifndef ROOT_TObjArray
#include "TObjArray.h"
#endif
class TClass;
class TClonesArray : public TObjArray {
protected:
TClass *fClass;
TObjArray *fKeep;
public:
enum {
kForgetBits = BIT(0),
kNoSplit = BIT(1),
kBypassStreamer = BIT(12)
};
TClonesArray();
TClonesArray(const char *classname, Int_t size = 1000, Bool_t call_dtor = kFALSE);
TClonesArray(const TClass *cl, Int_t size = 1000, Bool_t call_dtor = kFALSE);
TClonesArray(const TClonesArray& tc);
virtual ~TClonesArray();
TClonesArray& operator=(const TClonesArray& tc);
virtual void Compress();
virtual void Clear(Option_t *option="");
virtual void Delete(Option_t *option="");
virtual void Expand(Int_t newSize);
virtual void ExpandCreate(Int_t n);
virtual void ExpandCreateFast(Int_t n);
TClass *GetClass() const { return fClass; }
virtual void SetOwner(Bool_t enable = kTRUE);
void AddFirst(TObject *) { MayNotUse("AddFirst"); }
void AddLast(TObject *) { MayNotUse("AddLast"); }
void AddAt(TObject *, Int_t) { MayNotUse("AddAt"); }
void AddAtAndExpand(TObject *, Int_t) { MayNotUse("AddAtAndExpand"); }
Int_t AddAtFree(TObject *) { MayNotUse("AddAtFree"); return 0; }
void AddAfter(const TObject *, TObject *) { MayNotUse("AddAfter"); }
void AddBefore(const TObject *, TObject *) { MayNotUse("AddBefore"); }
void BypassStreamer(Bool_t bypass=kTRUE);
Bool_t CanBypassStreamer() const { return TestBit(kBypassStreamer); }
virtual TObject *RemoveAt(Int_t idx);
virtual TObject *Remove(TObject *obj);
virtual void Sort(Int_t upto = kMaxInt);
TObject *New(Int_t idx);
TObject *AddrAt(Int_t idx);
TObject *&operator[](Int_t idx);
TObject *operator[](Int_t idx) const;
ClassDef(TClonesArray,4)
};
inline TObject *TClonesArray::AddrAt(Int_t idx)
{
return operator[](idx);
}
#endif
Last update: Thu Jan 17 08:47:22 2008
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.