#ifndef ROOT_TArray
#define ROOT_TArray
#ifndef ROOT_Htypes
#include "Htypes.h"
#endif
#include <string.h>
class TBuffer;
class TArray {
protected:
Bool_t BoundsOk(const char *where, Int_t at) const;
Bool_t OutOfBoundsError(const char *where, Int_t i) const;
public:
Int_t fN;
TArray(): fN(0) { }
TArray(Int_t n): fN(n) { }
TArray(const TArray &a): fN(a.fN) { }
TArray &operator=(const TArray &rhs)
{if(this!=&rhs) fN = rhs.fN; return *this; }
virtual ~TArray() { fN = 0; }
Int_t GetSize() const { return fN; }
virtual void Set(Int_t n) = 0;
static TArray *ReadArray(TBuffer &b, const TClass *clReq);
static void WriteArray(TBuffer &b, const TArray *a);
friend TBuffer &operator<<(TBuffer &b, const TArray *obj);
ClassDef(TArray,1)
};
#if defined R__TEMPLATE_OVERLOAD_BUG
template <>
#endif
inline TBuffer &operator>>(TBuffer &buf, TArray *&obj)
{
obj = (TArray *) TArray::ReadArray(buf, TArray::Class());
return buf;
}
#if defined R__TEMPLATE_OVERLOAD_BUG
template <>
#endif
TBuffer &operator<<(TBuffer &b, const TArray *obj);
inline Bool_t TArray::BoundsOk(const char *where, Int_t at) const
{
return (at < 0 || at >= fN)
? OutOfBoundsError(where, at)
: kTRUE;
}
#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.