class TArray


Abstract array base class. Used by TArrayC, TArrayS, TArrayI,
TArrayL, TArrayF and TArrayD.
Data member is public for historical reasons.

Function Members (Methods)

    This is an abstract class, constructors will not be documented.
    Look at the header to check for available constructors.

static TClass*Class()
virtual Double_tGetAt(Int_t i) const
Int_tGetSize() const
virtual TClass*IsA() const
TArray&operator=(const TArray& rhs)
static TArray*ReadArray(TBuffer& b, const TClass* clReq)
virtual voidSet(Int_t n)
virtual voidSetAt(Double_t v, Int_t i)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
static voidWriteArray(TBuffer& b, const TArray* a)
Bool_tBoundsOk(const char* where, Int_t at) const
Bool_tOutOfBoundsError(const char* where, Int_t i) const

Data Members

Int_tfNNumber of array elements

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

Bool_t OutOfBoundsError(const char* where, Int_t i) const
 Generate an out-of-bounds error. Always returns false.
TArray * ReadArray(TBuffer& b, const TClass* clReq)
 Read TArray object from buffer. Simplified version of
 TBuffer::ReadObject (does not keep track of multiple
 references to same array).
void WriteArray(TBuffer& b, const TArray* a)
 Write TArray object to buffer. Simplified version of
 TBuffer::WriteObject (does not keep track of multiple
 references to the same array).
Bool_t BoundsOk(const char* where, Int_t at) const
TArray & operator=(const TArray& rhs)
{if(this!=&rhs) fN = rhs.fN; return *this; }
virtual ~TArray()
{ fN = 0; }
Int_t GetSize()
{ return fN; }
void Set(Int_t n)
Double_t GetAt(Int_t i) const
void SetAt(Double_t v, Int_t i)

Author: Fons Rademakers 21/10/97
Last change: root/cont:$Id: TArray.h 20882 2007-11-19 11:31:26Z rdm $
Last generated: 2008-06-25 08:34
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *

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.