ROOT » CORE » CONT » TArray

class TArray


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.

public:
virtual~TArray()
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) const
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
TArray()
TArray(Int_t n)
TArray(const TArray& a)
static voidWriteArray(TBuffer& b, const TArray* a)
protected:
Bool_tBoundsOk(const char* where, Int_t at) const
Bool_tOutOfBoundsError(const char* where, Int_t i) const

Data Members

public:
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()
{ }
TArray(Int_t n)
{ }
TArray(const TArray& a)
{ }
TArray & operator=(const TArray& rhs)
{if(this!=&rhs) fN = rhs.fN; return *this; }
virtual ~TArray()
{ fN = 0; }
Int_t GetSize() const
{ return fN; }
void Set(Int_t n)
Double_t GetAt(Int_t i) const
void SetAt(Double_t v, Int_t i)