34 Bool_t BoundsOk(
const char *where, Int_t at)
const;
35 Bool_t OutOfBoundsError(
const char *where, Int_t i)
const;
41 TArray(Int_t n): fN(n) { }
42 TArray(
const TArray &a): fN(a.fN) { }
43 TArray &operator=(
const TArray &rhs)
44 {
if(
this!=&rhs) fN = rhs.fN;
return *
this; }
45 virtual ~TArray() { fN = 0; }
47 Int_t GetSize()
const {
return fN; }
48 virtual void Set(Int_t n) = 0;
50 virtual Double_t GetAt(Int_t i)
const = 0;
51 virtual void SetAt(Double_t v, Int_t i) = 0;
53 static TArray *ReadArray(TBuffer &b,
const TClass *clReq);
54 static void WriteArray(TBuffer &b,
const TArray *a);
56 friend TBuffer &operator<<(TBuffer &b,
const TArray *obj);
61 #if defined R__TEMPLATE_OVERLOAD_BUG
64 inline TBuffer &operator>>(TBuffer &buf, TArray *&obj)
68 obj = (TArray *) TArray::ReadArray(buf, TArray::Class());
72 #if defined R__TEMPLATE_OVERLOAD_BUG
75 TBuffer &operator<<(TBuffer &b,
const TArray *obj);
77 inline Bool_t TArray::BoundsOk(
const char *where, Int_t at)
const
79 return (at < 0 || at >= fN)
80 ? OutOfBoundsError(where, at)