ROOT logo
ROOT » CORE » CONT » TArrayL64

class TArrayL64: public TArray


TArrayL64

Array of long64s (64 bits per element).


Function Members (Methods)

public:
TArrayL64()
TArrayL64(Int_t n)
TArrayL64(const TArrayL64& array)
TArrayL64(Int_t n, const Long64_t* array)
virtual~TArrayL64()
voidAddAt(Long64_t c, Int_t i)
voidAdopt(Int_t n, Long64_t* array)
Long64_tAt(Int_t i) const
static TClass*Class()
voidCopy(TArrayL64& array) const
const Long64_t*GetArray() const
Long64_t*GetArray()
virtual Double_tGetAt(Int_t i) const
Int_tTArray::GetSize() const
Stat_tGetSum() const
virtual TClass*IsA() const
TArrayL64&operator=(const TArrayL64& rhs)
Long64_t&operator[](Int_t i)
Long64_toperator[](Int_t i) const
static TArray*TArray::ReadArray(TBuffer& b, const TClass* clReq)
voidReset()
voidReset(Long64_t val)
virtual voidSet(Int_t n)
voidSet(Int_t n, const Long64_t* array)
virtual voidSetAt(Double_t v, Int_t i)
virtual voidShowMembers(TMemberInspector& insp)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
static voidTArray::WriteArray(TBuffer& b, const TArray* a)
protected:
Bool_tTArray::BoundsOk(const char* where, Int_t at) const
Bool_tTArray::OutOfBoundsError(const char* where, Int_t i) const

Data Members

public:
Long64_t*fArray[fN] Array of fN long64s
Int_tTArray::fNNumber of array elements

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TArrayL64()
 Default TArrayL64 ctor.
TArrayL64(Int_t n)
 Create TArrayL64 object and set array size to n long64s.
TArrayL64(Int_t n, const Long64_t* array)
 Create TArrayL object and initialize it with values of array.
TArrayL64(const TArrayL64& array)
 Copy constructor.
TArrayL64 & operator=(const TArrayL64& rhs)
 TArrayL64 assignment operator.
~TArrayL64()
 Delete TArrayL64 object.
void Adopt(Int_t n, Long64_t* array)
 Adopt array arr into TArrayL64, i.e. don't copy arr but use it directly
 in TArrayL64. User may not delete arr, TArrayL64 dtor will do it.
void AddAt(Long64_t c, Int_t i)
 Add long64 c at position i. Check for out of bounds.
void Set(Int_t n)
 Set size of this array to n long64s.
 A new array is created, the old contents copied to the new array,
 then the old array is deleted.
 This function should not be called if the array was declared via Adopt.
void Set(Int_t n, const Long64_t* array)
 Set size of this array to n long64s and set the contents.
 This function should not be called if the array was declared via Adopt.
void Streamer(TBuffer& b)
 Stream a TArrayL64 object.
Long64_t At(Int_t i) const
Long64_t & operator[](Int_t i)
Long64_t operator[](Int_t i) const
void Copy(TArrayL64& array) const
{array.Set(fN,fArray);}
const Long64_t * GetArray() const
{ return fArray; }
Long64_t * GetArray()
{ return fArray; }
Double_t GetAt(Int_t i) const
{ return At(i); }
Stat_t GetSum() const
{Stat_t sum=0; for (Int_t i=0;i<fN;i++) sum+=fArray[i]; return sum;}
void Reset()
{memset(fArray, 0, fN*sizeof(Long64_t));}
void Reset(Long64_t val)
{for (Int_t i=0;i<fN;i++) fArray[i] = val;}
void SetAt(Double_t v, Int_t i)
{ AddAt((Long64_t)v, i); }