Abstract array base class.
Used by TArrayC, TArrayS, TArrayI, TArrayL, TArrayF and TArrayD. Data member is public for historical reasons.
When used from Python, the subclasses of TArray (TArrayC, TArrayS, TArrayI, TArrayL, TArrayF and TArrayD) benefit from the following extra features:
len
, which is equivalent to TArray::GetSize(): getitem
and setitem
operators, respectively: Public Member Functions | |
TArray () | |
TArray (const TArray &a) | |
TArray (Int_t n) | |
virtual | ~TArray () |
virtual Double_t | GetAt (Int_t i) const =0 |
Int_t | GetSize () const |
TArray & | operator= (const TArray &rhs) |
virtual void | Set (Int_t n)=0 |
virtual void | SetAt (Double_t v, Int_t i)=0 |
Static Public Member Functions | |
static TArray * | ReadArray (TBuffer &b, const TClass *clReq) |
Read TArray object from buffer. | |
static void | WriteArray (TBuffer &b, const TArray *a) |
Write TArray object to buffer. | |
Public Attributes | |
Int_t | fN |
Protected Member Functions | |
Bool_t | BoundsOk (const char *where, Int_t at) const |
Bool_t | OutOfBoundsError (const char *where, Int_t i) const |
Generate an out-of-bounds error. Always returns false. | |
Friends | |
TBuffer & | operator<< (TBuffer &b, const TArray *obj) |
Write TArray or derived object to buffer. | |
#include <TArray.h>
Generate an out-of-bounds error. Always returns false.
Definition at line 30 of file TArray.cxx.
Read TArray object from buffer.
Simplified version of TBuffer::ReadObject (does not keep track of multiple references to same array).
Definition at line 41 of file TArray.cxx.
Write TArray object to buffer.
Simplified version of TBuffer::WriteObject (does not keep track of multiple references to the same array).
Definition at line 82 of file TArray.cxx.
Write TArray or derived object to buffer.
Definition at line 112 of file TArray.cxx.